-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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 "mjs" extensions #4466
Support "mjs" extensions #4466
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4466 +/- ##
=======================================
Coverage 35.96% 35.96%
=======================================
Files 555 555
Lines 6653 6653
Branches 871 871
=======================================
Hits 2393 2393
Misses 3813 3813
Partials 447 447
Continue to review full report at Codecov.
|
@@ -57,7 +57,7 @@ export default ({ configDir, babelOptions, entries }) => { | |||
module: { | |||
rules: [ | |||
{ | |||
test: /\.jsx?$/, | |||
test: /\.(mjs|jsx?)$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a very edge case : what about the mjsx files ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(is it even possible ?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I could set it to m?jsx?
. But do they even exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wait until we hear from the community about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m?jsx?
looks better to me
Issue: #4125 (comment)
What I did
Added mjs to the prod/dev webpack configs