enable tree shaking

This commit is contained in:
Jarred Sumner
2023-05-11 21:40:30 -07:00
parent 4381204cdb
commit 99cce67d61

View File

@@ -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) {