mirror of https://github.com/webpack/webpack.git
add wasm extensions as default
This commit is contained in:
parent
b57e85ae0a
commit
ccbc07c239
|
@ -118,7 +118,7 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
|
|||
this.set("resolve", "call", value => Object.assign({}, value));
|
||||
this.set("resolve.unsafeCache", true);
|
||||
this.set("resolve.modules", ["node_modules"]);
|
||||
this.set("resolve.extensions", [".mjs", ".js", ".json"]);
|
||||
this.set("resolve.extensions", [".wasm", ".mjs", ".js", ".json"]);
|
||||
this.set("resolve.mainFiles", ["index"]);
|
||||
this.set("resolve.aliasFields", "make", (options) => {
|
||||
if(options.target === "web" || options.target === "webworker")
|
||||
|
|
Loading…
Reference in New Issue