github evanw/esbuild v0.16.16

latest releases: v0.20.2, v0.20.1, v0.20.0...
15 months ago
  • Fix a regression caused by comment preservation (#2805)

    The new comment preservation behavior that was added in 0.16.14 introduced a regression where comments in certain locations could cause esbuild to omit certain necessary parentheses in the output. The outermost parentheses were incorrectly removed for the following syntax forms, which then introduced syntax errors:

    (/* comment */ { x: 0 }).x;
    (/* comment */ function () { })();
    (/* comment */ class { }).prototype;

    This regression has been fixed.

Don't miss a new esbuild release

NewReleases is sending notifications on new releases.