Update dependency esbuild to v0.12.19 #643

Merged
konrad merged 1 commits from renovate/esbuild-0.x into main 2021-08-08 07:05:31 +00:00
Member

This PR contains the following updates:

Package Type Update Change
esbuild devDependencies patch 0.12.18 -> 0.12.19

Release Notes

evanw/esbuild

v0.12.19

Compare Source

  • Add support for CSS source maps (#​519)

    With this release, esbuild will now generate source maps for CSS output files when --sourcemap is enabled. This supports all of the same options as JS source maps including --sourcemap=inline and --sourcemap=external. In addition, CSS input files with embedded /*# sourceMappingURL=... */ comments will cause the CSS output file source map to map all the way back to the original inputs. CSS source maps are used by the browser's style inspector to link back to the original source code instead of linking to the bundled source code.

  • Fix computed class fields in TypeScript edge case (#​1507)

    If TypeScript code contains computed class fields, the target environment supports class fields so syntax lowering is not necessary, and TypeScript's useDefineForClassFields setting is set to true, then esbuild had a bug where the computed property names were computed after the class definition and were undefined. Note that TypeScript's useDefineForClassFields setting defaults to true if tsconfig.json contains "target": "ESNext".

    // Original code
    class Foo {
      [foo] = 1;
      @​bar [baz] = 2;
    }
    
    // Old output
    var _a, _b;
    var Foo = class {
      [_a] = 1;
      [_b] = 2;
    };
    _a = foo, _b = baz;
    __decorateClass([
      bar
    ], Foo.prototype, _b, 2);
    
    // New output
    var _a;
    var Foo = class {
      [foo] = 1;
      [_a = baz] = 2;
    };
    __decorateClass([
      bar
    ], Foo.prototype, _a, 2);
    

    The problem in this case is that normally TypeScript moves class field initializers into the special constructor method (automatically generating one if one doesn't already exist) so the side effects for class field property names must happen after the class body. But if class fields are supported by the target environment then the side effects must happen inline instead.


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [esbuild](https://github.com/evanw/esbuild) | devDependencies | patch | [`0.12.18` -> `0.12.19`](https://renovatebot.com/diffs/npm/esbuild/0.12.18/0.12.19) | --- ### Release Notes <details> <summary>evanw/esbuild</summary> ### [`v0.12.19`](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md#&#8203;01219) [Compare Source](https://github.com/evanw/esbuild/compare/v0.12.18...v0.12.19) - Add support for CSS source maps ([#&#8203;519](https://github.com/evanw/esbuild/issues/519)) With this release, esbuild will now generate source maps for CSS output files when `--sourcemap` is enabled. This supports all of the same options as JS source maps including `--sourcemap=inline` and `--sourcemap=external`. In addition, CSS input files with embedded `/*# sourceMappingURL=... */` comments will cause the CSS output file source map to map all the way back to the original inputs. CSS source maps are used by the browser's style inspector to link back to the original source code instead of linking to the bundled source code. - Fix computed class fields in TypeScript edge case ([#&#8203;1507](https://github.com/evanw/esbuild/issues/1507)) If TypeScript code contains computed class fields, the target environment supports class fields so syntax lowering is not necessary, and TypeScript's `useDefineForClassFields` setting is set to `true`, then esbuild had a bug where the computed property names were computed after the class definition and were undefined. Note that TypeScript's `useDefineForClassFields` setting defaults to `true` if `tsconfig.json` contains `"target": "ESNext"`. ```ts // Original code class Foo { [foo] = 1; @&#8203;bar [baz] = 2; } // Old output var _a, _b; var Foo = class { [_a] = 1; [_b] = 2; }; _a = foo, _b = baz; __decorateClass([ bar ], Foo.prototype, _b, 2); // New output var _a; var Foo = class { [foo] = 1; [_a = baz] = 2; }; __decorateClass([ bar ], Foo.prototype, _a, 2); ``` The problem in this case is that normally TypeScript moves class field initializers into the special `constructor` method (automatically generating one if one doesn't already exist) so the side effects for class field property names must happen after the class body. But if class fields are supported by the target environment then the side effects must happen inline instead. </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
renovate added the
dependencies
label 2021-08-07 22:09:23 +00:00
renovate added 1 commit 2021-08-07 22:09:23 +00:00
continuous-integration/drone/pr Build is passing Details
eeb275ded0
Update dependency esbuild to v0.12.19
konrad merged commit bd2c2f3977 into main 2021-08-08 07:05:31 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.