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

chore: upgrade esbuild to 0.24.x #2658

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Mar 1, 2024

This just bumps esbuild to 0.20.x

it'll help de-dupe a lot of my dependency tree since many of our other dependencies are using esbuild 0.20.x 👀

Copy link

changeset-bot bot commented Mar 1, 2024

🦋 Changeset detected

Latest commit: dc23517

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

This PR includes changesets to release 3 packages
Name Type
rollup-plugin-workbox Patch
@web/dev-server-esbuild Patch
@web/storybook-builder 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

@43081j
Copy link
Contributor Author

43081j commented Mar 1, 2024

i think this is blocked until storybook also moves to esbuild 0.20.x

i have a PR here: storybookjs/storybook#26255

@bashmish
Copy link
Member

bashmish commented Mar 2, 2024

i think this is blocked until storybook also moves to esbuild 0.20.x

why do you think it's blocked?
in theory the storybook-builder is decoupled from storybook
not entirely, because the integration is done via a Connect middleware, but esbuild doesn't play a role there
so I think we can accept that storybook-builder has a newer esbuild version than the storybook core

@bashmish
Copy link
Member

bashmish commented Mar 3, 2024

I figured there will be another issue: chialab esbuild plugins used in the storybook-builder are on esbuild 0.19.x (e.g. esbuild-plugin-commonjs), those need compatibility. Can you raise a PR in their repo?

@43081j
Copy link
Contributor Author

43081j commented Mar 3, 2024

ah you are right, it isn't storybook, it is the commonjs plugin

basically, our Plugin type we import from esbuild is different than the Plugin the commonjs plugin exports (esbuild-plugin-commonjs)

so we need to upgrade that repo upstream first

@whjvenyl
Copy link

whjvenyl commented Oct 7, 2024

What about this one? Seems like https://github.com/chialab/rna/tree/main/packages/esbuild-plugin-commonjs was updated quite a while ago 🤔

@bashmish
Copy link
Member

I figured there will be another issue: chialab esbuild plugins used in the storybook-builder are on esbuild 0.19.x (e.g. esbuild-plugin-commonjs), those need compatibility. Can you raise a PR in their repo?

btw this is not an issue anymore, since we don't use chialab esbuild plugins anymore

@bashmish
Copy link
Member

bashmish commented Oct 10, 2024

@43081j can you please look into updating this PR? the conflicts need to be resolved and we might be able to jump right to [email protected]

@43081j
Copy link
Contributor Author

43081j commented Oct 23, 2024

updated to be 0.24.0, but it seems CI fails for unrelated reasons in one of the test runs

not too sure what's going on there 🤔 second pair of eyes would be good

@bashmish
Copy link
Member

Looks to be related to new node 23 released on Oct 16
https://nodejs.org/en/blog/release/v23.0.0

I tested current master with it locally, also breaks.

@bashmish
Copy link
Member

bashmish commented Oct 23, 2024

@43081j please rebase with latest master to get Node 22 testing back. There will still be failure on Node 23, but that's OK for now, I'll merge with it since it's really not related.

Also small remark: please update the PR title and the changeset to mention 0.24.x instead of 0.20.x

@bashmish
Copy link
Member

bashmish commented Nov 5, 2024

@43081j any update on this?

UPDATE: just thinking if I have access to the PR myself as a maintainer, will try to update

@43081j
Copy link
Contributor Author

43081j commented Nov 6, 2024

Sorry!

I lost track of this as I've been pretty busy travelling

I have it locally mid rebase but ran into a bunch of dependency problems. I can try again in the next day or two unless you beat me to it

@bashmish bashmish changed the title chore: upgrade esbuild to 0.20.x chore: upgrade esbuild to 0.24.x Nov 6, 2024
@bashmish
Copy link
Member

bashmish commented Nov 6, 2024

Rebase worked good for me, updated the rest and merging now! Thanks!

@bashmish bashmish merged commit f4fbbf5 into modernweb-dev:master Nov 6, 2024
9 checks passed
@43081j 43081j deleted the esbuild-bump branch November 7, 2024 01:16
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.

3 participants