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)