-
Notifications
You must be signed in to change notification settings - Fork 73
Description
The build does output a worker in the specified output directory (defaulting to .next-worker
).
This directory should contain everything that's required to run the worker (assets included).
But this is not so, as there are clear signs that files within .next-worker
make use of files outside of the directory (making the dev/deployment of unbundled workers (--no-bundle
) impossible).
For example:
- the need to patch the webpack-runtime.js file
- the need to patch the
pages.runtime.prod.js
file
I'm not sure how those files are not getting bundled by the esbuild build step π
We should make sure that they are actually bundled in, or if that's not possible, everything that the worker requires should just need to live in the output directory and no external file/dependency should be needed (in other words, I think that we need to make sure that wrangler dev --no-bundle
works).
Metadata
Metadata
Assignees
Labels
Type
Projects
Status