aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main_wasm.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main_wasm.zig b/src/main_wasm.zig
index 185d785c5..5785a06d7 100644
--- a/src/main_wasm.zig
+++ b/src/main_wasm.zig
@@ -232,6 +232,7 @@ export fn transform(opts_array: u64) u64 {
}, &log, &code, define, allocator) catch unreachable;
parser.options.jsx.parse = loader.isJSX();
parser.options.ts = loader.isTypeScript();
+ parser.options.tree_shaking = false;
parser.options.features.top_level_await = true;
const result = parser.parse() catch unreachable;
if (result.ok) {