github evanw/esbuild v0.21.1

latest releases: v0.21.3, v0.21.2
12 days ago
  • Fix a regression with --keep-names (#3756)

    The previous release introduced a regression with the --keep-names setting and object literals with get/set accessor methods, in which case the generated code contained syntax errors. This release fixes the regression:

    // Original code
    x = { get y() {} }
    
    // Output from version 0.21.0 (with --keep-names)
    x = { get y: /* @__PURE__ */ __name(function() {
    }, "y") };
    
    // Output from this version (with --keep-names)
    x = { get y() {
    } };

Don't miss a new esbuild release

NewReleases is sending notifications on new releases.