Support index.web.js entry file
See original GitHub issueIssue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Entry Points - webpack
webpack.config.js module.exports = { entry: './path/to/my/entry/file.js', };. The single entry syntax for the entry property is a shorthand for:.
Read more >How to Create Index.js File in Node? - KnowledgeHut
Here is another way to use the index.js file in NodeJs. Let's use Axios to retrieve a bulk of users from the Jsonplaceholder...
Read more >Conventions for app.js, index.js, and server.js in node.js?
json file via npm init , one is prompted for the main entry point file. The default is given as index.js . In...
Read more >React Native Web platform specific web.js extension
Out of the box, React Native is configured to automatically import files based on the platform being used. For example, you could have...
Read more >Multi-platform setup // React Native for Web
Additionally, 3rd party React Native packages with web support are ... (see the webpack configuration below for resolving *.web.js files):.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/facebook/create-react-app/issues/3052#issuecomment-356114916 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
package.json
there withmain
property pointed to any file the user like.This is on master since #4837.
These are now accepted as an entry point:
You can close this issue. 😃