Skip to content

Commit 856695a

Browse files
committed
refactor: use web wasm plugin for node
1 parent a3a4c33 commit 856695a

2 files changed

Lines changed: 2 additions & 117 deletions

File tree

lib/node/ReadFileCompileWasmMainTemplatePlugin.js

Lines changed: 0 additions & 115 deletions
This file was deleted.

lib/node/ReadFileCompileWasmTemplatePlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
*/
55
"use strict";
66

7-
const ReadFileCompileWasmMainTemplatePlugin = require("./ReadFileCompileWasmMainTemplatePlugin");
7+
const FetchCompileWasmMainTemplatePlugin = require("../web/FetchCompileWasmMainTemplatePlugin");
88
const WasmModuleTemplatePlugin = require("../wasm/WasmModuleTemplatePlugin");
99

1010
class ReadFileCompileWasmTemplatePlugin {
1111
apply(compiler) {
1212
compiler.hooks.thisCompilation.tap(
1313
"ReadFileCompileWasmTemplatePlugin",
1414
compilation => {
15-
new ReadFileCompileWasmMainTemplatePlugin().apply(
15+
new FetchCompileWasmMainTemplatePlugin().apply(
1616
compilation.mainTemplate
1717
);
1818
new WasmModuleTemplatePlugin().apply(

0 commit comments

Comments
 (0)