From dc9039a36f2e526a9a224a523fa6ebcdd42a9223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Somhairle=20MacLe=C3=B2id?= Date: Tue, 1 Oct 2024 14:55:31 +0100 Subject: [PATCH] Fix local builds of Wrangler (#6870) * Fix local builds of Wrangler * Create fuzzy-cows-camp.md --- .changeset/fuzzy-cows-camp.md | 5 +++++ packages/wrangler/scripts/deps.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fuzzy-cows-camp.md 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");