From 99cce67d61be2b484aaa0d48d1bb5e9b73b5046e Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 11 May 2023 21:40:30 -0700 Subject: [PATCH] enable tree shaking --- src/bundler/bundle_v2.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index db1b091461..80303aa9df 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -736,6 +736,7 @@ pub const BundleV2 = struct { generator.linker.options.minify_identifiers = bundler.options.minify_identifiers; generator.linker.options.minify_whitespace = bundler.options.minify_whitespace; generator.linker.options.source_maps = bundler.options.source_map; + generator.linker.options.tree_shaking = bundler.options.tree_shaking; var pool = try generator.graph.allocator.create(ThreadPool); if (enable_reloading) {