Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update esbuild dependency of @web/dev-server-esbuild to fix bug with decorators #2137

Merged

Conversation

jpzwarte
Copy link
Contributor

@jpzwarte jpzwarte commented Mar 10, 2023

Version 0.3.3 of @web/dev-server-esbuild uses 0.14.54 of esbuild. This version has a bug that breaks experimental typescript decorators. Apparently this has been known quite a while and the workaround is to fix the version to 0.2.16 of dev-server-esbuild.

This PR updates the esbuild dependency to 0.16 || 0.17.

All tests still pass.

fixes #1929

@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2023

🦋 Changeset detected

Latest commit: 3418e9f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/dev-server-esbuild Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@Westbrook Westbrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update make sense. If there are no opinions to the contrary, don't let me forget to merge this next week sometime.

@@ -52,7 +52,7 @@
"dependencies": {
"@mdn/browser-compat-data": "^4.0.0",
"@web/dev-server-core": "^0.3.19",
"esbuild": "^0.12 || ^0.13 || ^0.14",
"esbuild": "^0.16 || ^0.17",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are no consumed APIs changing as part of this update, is there anything wrong with leaving the previous verions? 0.14.0 is at least a year old, so I'm not against dropping them, just wanted to get your thoughts. As a "breaking" change (patches before 1.0) it's not an issue either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we could just leave the old ones. On the other hand; some old ones are broken, so we could prevent anyone from going down the same rabbit hole?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah, if they are broken, let's use the breaking semantics of the change you've listed and exclude them. Great call!

@Westbrook Westbrook merged commit 1b2ae08 into modernweb-dev:master Mar 14, 2023
@jpzwarte jpzwarte deleted the fix/update-esbuild-dependency branch March 14, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to use @web/dev-server-esbuild#0.3.0 with TS and lit
2 participants