-
Notifications
You must be signed in to change notification settings - Fork 336
wranglerjs is too rigid in what version of webpack it uses to build projects #1558
Comments
I think the long-term solution to this problem is to have wrangler defer building to project scripts, i.e.
or if there's a cargo.toml file
and only fallback to using a bundled version of webpack if none of these exist. |
Supporting arbitrary scripts seems like a really good idea actually, and would allow people to choose their own JS bundling tools (e.g. rollup, etc). |
It turns out that wrangler installation comes with I can build my project successfully with |
Once #1677 is merged, we plan to support any version of webpack |
closing since this is addressed by #1677, which will be going out as part of an RC in the near future |
from @1000hz : the parser webpack 4 uses (acorn) doesn't support optional chaining / nullish coalescing operators. wranglerjs uses its own version of webpack (4.x). TypeScript target
ES2020
/ESNext
doesn't transpile these operatorswebpack 5 (which has been in beta forever) uses a newer version of acorn with support for these operators
but there's no way to override what version of webpack wrangler will use
The text was updated successfully, but these errors were encountered: