Skip to content
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

Merged
merged 1 commit into from
Oct 18, 2018
Merged

Support "mjs" extensions #4466

merged 1 commit into from
Oct 18, 2018

Conversation

igor-dv
Copy link
Member

@igor-dv igor-dv commented Oct 17, 2018

Issue: #4125 (comment)

What I did

Added mjs to the prod/dev webpack configs

@igor-dv igor-dv added maintenance User-facing maintenance tasks core labels Oct 17, 2018
@igor-dv igor-dv self-assigned this Oct 17, 2018
@codecov
Copy link

codecov bot commented Oct 17, 2018

Codecov Report

Merging #4466 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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
Impacted Files Coverage Δ
lib/core/src/server/config/webpack.config.prod.js 0% <ø> (ø) ⬆️
lib/core/src/server/config/webpack.config.dev.js 0% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ceccc99...e831afd. Read the comment docs.

@@ -57,7 +57,7 @@ export default ({ configDir, babelOptions, entries }) => {
module: {
rules: [
{
test: /\.jsx?$/,
test: /\.(mjs|jsx?)$/,
Copy link
Member

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 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(is it even possible ?)

Copy link
Member Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question

Copy link
Member

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.

Copy link
Member

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

@ndelangen ndelangen merged commit a9e8e42 into master Oct 18, 2018
@ndelangen ndelangen deleted the support-mjs branch October 18, 2018 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants