Add .mjs to default DelegatedModule options.extensions
This commit is contained in:
parent
499cb3cec2
commit
d8cd5d04de
|
@ -7,7 +7,6 @@ declare namespace NodeJS {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
declare module "neo-async" {
|
||||
export interface Dictionary<T> {
|
||||
[key: string]: T;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue