-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Add mjs and jsx filename extensions to file-loader exclude pattern #3537
Conversation
@Kingdutch can you confirm this fixes #3520? |
@Timer This is the slightly more explicit version of my suggestion in the issue : ) Applied it locally and it fixes the issue 👍 |
We like explicitness for beginners who eject. 😄 |
* master: Updates comment to reflect codebase (facebook#3576) Add mjs and jsx filename extensions to file-loader exclude pattern (facebook#3537)
@Timer or @gaearon could you release this change please?
...and we can't use external libs which file extension is actual: loader: require.resolve('file-loader'),
exclude: [/\.js$/, /\.html$/, /\.json$/], expected: loader: require.resolve('file-loader'),
exclude: [/\.(js|jsx|mjs)$/, /\.html$/, /\.json$/], Thanks! |
Even without ejecting, importing a |
It'll be out in the next release. |
This is out in |
Closes #3520
See issue for steps to reproduce/test.