Skip to content

πŸ› Bug: everything that's needed should be in the output directoryΒ #14

@dario-piotrowicz

Description

@dario-piotrowicz

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:

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

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions