diff --git a/.changeset/fuzzy-cows-camp.md b/.changeset/fuzzy-cows-camp.md new file mode 100644 index 000000000000..c1860c0eef93 --- /dev/null +++ b/.changeset/fuzzy-cows-camp.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +fix: Include `workerd` in the external dependecies of Wrangler to fix local builds. diff --git a/packages/wrangler/scripts/deps.ts b/packages/wrangler/scripts/deps.ts index 4c6ed1409263..4211800737c8 100644 --- a/packages/wrangler/scripts/deps.ts +++ b/packages/wrangler/scripts/deps.ts @@ -21,7 +21,7 @@ export const EXTERNAL_DEPENDENCIES = [ // unenv must be external because it contains unenv/runtime code which needs to be resolved // and read when we are bundling the worker application "unenv", - "workerd/worker.mjs", + "workerd", ]; const pathToPackageJson = path.resolve(__dirname, "..", "package.json");