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

Add .mjs to default file extentions #1022

Closed
jaydenseric opened this issue Feb 22, 2018 · 0 comments
Closed

Add .mjs to default file extentions #1022

jaydenseric opened this issue Feb 22, 2018 · 0 comments

Comments

@jaydenseric
Copy link
Contributor

jaydenseric commented Feb 22, 2018

This will make using documentation much easier if you have .mjs files in your project:

The .mjs file extension is the official way to run ESM natively in Node.js. All of my packages these days have .mjs files. It is becoming increasingly common in the wild and will eventually be the go-to extension for ES. .mjs is already supported by default by tools such as Webpack.

jaydenseric added a commit to jaydenseric/documentation that referenced this issue Feb 28, 2018
Fixes documentationjs#1022.

`.mjs` is ordered before `.js` as that is the resolution order in other tools such as Webpack v4.
@tmcw tmcw closed this as completed in #1023 Mar 1, 2018
tmcw pushed a commit that referenced this issue Mar 1, 2018
Fixes #1022.

`.mjs` is ordered before `.js` as that is the resolution order in other tools such as Webpack v4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant