-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support index.web.js entry file #3941
Comments
#3052 (comment) suggest that if it's easy, they are happy to take a PR. I think the one way to do it without fiddling with webpack config is to let node's own module resolution takes care of this. https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/config/paths.js#L56 -> instead of hard-coding src/index.js we can move it to just src, and the user can create a |
IIRC node's module resolution does not handle |
that would also work. and we can just use I'm curious about how you set up your multi-platform app with CRA though, do you have an example of how you do that? |
Sorry for the delay. Here is my setup. |
This is on master since #4837. These are now accepted as an entry point:
You can close this issue. :) |
related issues: 1. facebook#1084 2. facebook#3941 3. facebook#3052
This is similar to "Support index.jsx entry file #3052".
I'm playing around with
react-primitives
and naturally I have multiple entry points into my app. After reading the reasons why #3052 was closed, I still think thatindex.web.js
is a valid use case. Thank you for consideration.The text was updated successfully, but these errors were encountered: