Skip to content

Commit

Permalink
Merge pull request #2420 from modernweb-dev/dependabot/npm_and_yarn/e…
Browse files Browse the repository at this point in the history
…sbuild-0.19.2

chore(deps): bump esbuild from 0.17.19 to 0.19.2
  • Loading branch information
koddsson authored Nov 1, 2023
2 parents c30b5dd + 7631d5e commit bd7db2c
Show file tree
Hide file tree
Showing 8 changed files with 3,630 additions and 5,986 deletions.
9 changes: 9 additions & 0 deletions .changeset/hungry-candles-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@web/dev-server-esbuild': major
---

Update ESBuild to latest version.

ESBuild has changed how TypeScript decorators are enabled in preparation for JavaScript decorators to land in browsers. ESBuild now requires the `experimentalDecorators` key to be set to `true` in the `tsconfig.json` for TypeScript decorators to be enabled.

If you are having issues with decorators after updating to this version, try setting the `experimentalDecorators` key in your `tsconfig.json`.
5 changes: 5 additions & 0 deletions .changeset/slimy-starfishes-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'rollup-plugin-workbox': minor
---

Update ESBuild to latest version
9,584 changes: 3,603 additions & 5,981 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/dev-server-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
],
"dependencies": {
"@mdn/browser-compat-data": "^4.0.0",
"esbuild": "^0.19.5",
"@web/dev-server-core": "^0.6.2",
"esbuild": "^0.16 || ^0.17",
"parse5": "^6.0.1",
"ua-parser-js": "^1.0.33"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"experimentalDecorators": true
}
}
7 changes: 5 additions & 2 deletions packages/dev-server-esbuild/test/ts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ class Bar {
}
},
},
esbuildPlugin({ ts: true }),
esbuildPlugin({
ts: true,
tsconfig: path.join(__dirname, 'fixture', 'tsconfig-with-experimental-decorators.json'),
}),
],
});

Expand All @@ -84,7 +87,7 @@ class Bar {
'application/javascript; charset=utf-8',
);
expectIncludes(text, '__decorate');
expectIncludes(text, 'this.x = "y";');
expectIncludes(text, '__publicField(this, "x", "y");');
expectIncludes(
text,
`__decorateClass([
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup-plugin-workbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"workbox"
],
"dependencies": {
"esbuild": "^0.17.19",
"esbuild": "^0.19.5",
"pretty-bytes": "^5.5.0",
"workbox-build": "^7.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@web/rollup-plugin-html": "^2.0.0",
"browser-assert": "^1.2.1",
"es-module-lexer": "^1.2.1",
"esbuild": "^0.17.19",
"esbuild": "^0.19.5",
"express": "^4.18.2",
"fs-extra": "^11.1.1",
"glob-promise": "^6.0.3",
Expand Down

0 comments on commit bd7db2c

Please sign in to comment.