Skip to content

Commit

Permalink
Merge pull request #7691 from mathiasbynens/mjs
Browse files Browse the repository at this point in the history
Add .mjs to default DelegatedModule options.extensions
  • Loading branch information
sokra committed Jul 10, 2018
2 parents 9f0056b + d8cd5d0 commit 78d8f4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion declarations.d.ts
Expand Up @@ -7,7 +7,6 @@ declare namespace NodeJS {
}
}


declare module "neo-async" {
export interface Dictionary<T> {
[key: string]: T;
Expand Down
8 changes: 7 additions & 1 deletion lib/DelegatedModuleFactoryPlugin.js
Expand Up @@ -15,7 +15,13 @@ class DelegatedModuleFactoryPlugin {
constructor(options) {
this.options = options;
options.type = options.type || "require";
options.extensions = options.extensions || ["", ".js"];
options.extensions = options.extensions || [
"",
".wasm",
".mjs",
".js",
".json"
];
}

apply(normalModuleFactory) {
Expand Down

0 comments on commit 78d8f4a

Please sign in to comment.