Skip to content

Commit

Permalink
fix: treeshaking enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywolf132 committed Sep 25, 2024
1 parent 87cd501 commit 741f3df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/esbuild/esbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 741f3df

Please sign in to comment.