add .mjs to list of well known extensions#5624
Conversation
Codecov Report
@@ Coverage Diff @@
## 7.0 #5624 +/- ##
==========================================
+ Coverage 84.45% 84.46% +0.01%
==========================================
Files 285 285
Lines 9648 9648
Branches 2711 2711
==========================================
+ Hits 8148 8149 +1
+ Misses 998 997 -1
Partials 502 502
Continue to review full report at Codecov.
|
this is to conform to the plan of the Node.js EP
|
ideally this would be an ES Module only mode / checked prior to |
|
@bmeck Could you clarify what you mean for
You mean looking for |
|
@loganfsmyth yes |
|
Gotcha. Yeah seems like that would be good to do for I don't think we have any control over resolution ordering for our our other usecases though. |
Javascript's module system has a suggested `mjs` extension, which has received some degree of adoption (Node [1]), tooling support (Babel [2], VSCode [3]), and is already present on Google's JS Modules documentation [4]. The only requirement is that they're sent with JS's MIME. [1] - http://2ality.com/2017/05/es-module-specifiers.html#why-new-extension [2] - babel/babel#5624 [3] - microsoft/vscode#25747 [4] - https://developers.google.com/web/fundamentals/primers/modules
Javascript's module system has a suggested mjs extension, which has received some degree of adoption (Node [1]), tooling support (Babel [2], VSCode [3]), and is already present on Google's JS Modules documentation [4]. The only requirement is that they're sent with JS's MIME. [1] - http://2ality.com/2017/05/es-module-specifiers.html#why-new-extension [2] - babel/babel#5624 [3] - microsoft/vscode#25747 [4] - https://developers.google.com/web/fundamentals/primers/modules
Adds default support for picking up
.mjsfiles