github evanw/esbuild v0.13.2

latest releases: v0.23.1, v0.23.0, v0.22.0...
2 years ago
  • Fix export {} statements with --tree-shaking=true (#1628)

    The new --tree-shaking=true option allows you to force-enable tree shaking in cases where it wasn't previously possible. One such case is when bundling is disabled and there is no output format configured, in which case esbuild just preserves the format of whatever format the input code is in. Enabling tree shaking in this context caused a bug where export {} statements were stripped. This release fixes the bug so export {} statements should now be preserved when you pass --tree-shaking=true. This bug only affected this new functionality and didn't affect existing scenarios.

Don't miss a new esbuild release

NewReleases is sending notifications on new releases.