diff options
-rw-r--r-- | src/bundler.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bundler.zig b/src/bundler.zig index d8376da2d..39368d529 100644 --- a/src/bundler.zig +++ b/src/bundler.zig @@ -2763,6 +2763,8 @@ pub const Bundler = struct { opts.transform_require_to_import = true; opts.can_import_from_bundle = bundler.options.node_modules_bundle != null; + opts.tree_shaking = bundler.options.tree_shaking; + // HMR is enabled when devserver is running // unless you've explicitly disabled it // or you're running in SSR |