Repository navigation
Add .mjs to known JavaScript file extensions - #25747
Conversation
Also add .es6 in missing places
|
Bradley Farias (@bmeck), thanks for your PR! By analyzing the history of the files in this pull request, we identified Benjamin Pasero (@bpasero) and Erich Gamma (@egamma) to be potential reviewers. |
|
@bmeck, It will cover your contributions to all Microsoft-managed open source projects. |
|
Bradley Farias (@bmeck), thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
Thanks! This change should be in the next VSCode insiders build |
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
Also add .es6 in missing places