workers-sdk
workers-sdk copied to clipboard
Update esbuild to v0.18.20
Describe the solution
Update esbuild on next major wrangler update. We can update to 19 once this issue gets resolved
The latest esbuild is 0.20.1. Are we still limited to 0.18+?
Until that issue is resolved, yes. Has anyone in DevProd looked into putting up a PR against esbuild?
Has anyone in DevProd looked into putting up a PR against esbuild?
@GregBrimble yep, we did look into this. Looks like a PR to add a flag to disable the behaviour would be doable, but we weren't sure whether it would be accepted. There are other options too like trying to pass glob patterns/import specifiers through onResolve plugin hooks, but that would be more complicated to implement. Our plan was to bump to 0.18.20 now, then try bump further if we have time. 👍
I've written up some thoughts on upgrading to 0.19.0 and beyond here: https://github.com/cloudflare/workers-sdk/issues/5222.