We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65a3711 commit 288e845Copy full SHA for 288e845
src/loader/index.ts
@@ -47,7 +47,9 @@ function loader(this: any, buffer: Buffer) {
47
// default options
48
// when user imports wasm with webassembly type, it's not possible to pass env
49
runtime: module.type?.startsWith("webassembly") ? "stub" : "incremental",
50
- exportRuntime: !module.type?.startsWith("webassembly"),
+ exportRuntime:
51
+ !module.type?.startsWith("webassembly") &&
52
+ userAscOptions.exportRuntime !== "stub",
53
debug: this.mode === "development",
54
optimizeLevel: 3,
55
shrinkLevel: 1,
0 commit comments