github evanw/esbuild v0.14.20

latest releases: v0.23.1, v0.23.0, v0.22.0...
2 years ago
  • Fix property mangling and keyword properties (#1998)

    Previously enabling property mangling with --mangle-props= failed to add a space before property names after a keyword. This bug has been fixed:

    // Original code
    class Foo {
      static foo = {
        get bar() {}
      }
    }
    
    // Old output (with --minify --mangle-props=.)
    class Foo{statics={gett(){}}}
    
    // New output (with --minify --mangle-props=.)
    class Foo{static s={get t(){}}}

Don't miss a new esbuild release

NewReleases is sending notifications on new releases.