Skip to content

Commit a1edb20

Browse files
authored
fix: node async wasm loader now use output.module to determinate code generation (#19210)
1 parent e55b08b commit a1edb20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/wasm/EnableWasmLoadingPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class EnableWasmLoadingPlugin {
9999
new ReadFileCompileWasmPlugin({
100100
mangleImports: compiler.options.optimization.mangleWasmImports,
101101
import:
102-
compiler.options.output.environment.module &&
102+
compiler.options.output.module &&
103103
compiler.options.output.environment.dynamicImport
104104
}).apply(compiler);
105105
}
@@ -108,7 +108,7 @@ class EnableWasmLoadingPlugin {
108108
const ReadFileCompileAsyncWasmPlugin = require("../node/ReadFileCompileAsyncWasmPlugin");
109109
new ReadFileCompileAsyncWasmPlugin({
110110
import:
111-
compiler.options.output.environment.module &&
111+
compiler.options.output.module &&
112112
compiler.options.output.environment.dynamicImport
113113
}).apply(compiler);
114114
}

0 commit comments

Comments
 (0)