From 741f3df7f5a966294e7d527b43e07ff7317cc7ce Mon Sep 17 00:00:00 2001 From: crazywolf132 Date: Wed, 25 Sep 2024 10:07:06 +1000 Subject: [PATCH] fix: treeshaking enabled by default --- pkg/esbuild/esbuild.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/esbuild/esbuild.go b/pkg/esbuild/esbuild.go index a3e21e6..1bf008a 100755 --- a/pkg/esbuild/esbuild.go +++ b/pkg/esbuild/esbuild.go @@ -101,6 +101,7 @@ func (b *Bundler) bundleEntry(sourcePath *utils.SourcePathResult, entry config.E MinifyIdentifiers: b.config.Minify, MinifySyntax: b.config.Minify, Plugins: plugins, + TreeShaking: api.TreeShakingTrue, } ctx, err := api.Context(buildOptions)