File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function compose(...fns) {
1818
1919// Utility functions
2020const isGlobalImport = moduleImport => moduleImport . descr . type === "GlobalType" ;
21- const initFuncId = t . identifier ( "__init__ " ) ;
21+ const initFuncId = t . identifier ( "__webpack_init__ " ) ;
2222
2323/**
2424 * Removes the start instruction
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class WasmModuleTemplatePlugin {
7272 '"use strict";' ,
7373 "// Instantiate WebAssembly module" ,
7474 "var instance = __webpack_require__.w[module.i]" ,
75- `instance.exports.__init__ (${ initParams } )` ,
75+ `instance.exports.__webpack_init__ (${ initParams } )` ,
7676 "// export exports from WebAssembly module" ,
7777 // TODO rewrite this to getters depending on exports to support circular dependencies
7878 generateExports ( )
You can’t perform that action at this time.
0 commit comments