From 3168ecb5745fd2acf3e6430612cacf1d74962847 Mon Sep 17 00:00:00 2001 From: armfazh Date: Fri, 30 Jun 2023 16:55:02 -0700 Subject: [PATCH] Detects __STATIC_CONTENT_MANIFEST as a special module. --- packages/miniflare/src/plugins/core/modules.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/miniflare/src/plugins/core/modules.ts b/packages/miniflare/src/plugins/core/modules.ts index 14ed65dd6..9a1df1e03 100644 --- a/packages/miniflare/src/plugins/core/modules.ts +++ b/packages/miniflare/src/plugins/core/modules.ts @@ -245,7 +245,12 @@ ${dim(modulesConfig)}`; const spec = specExpression.value; // `node:` and `cloudflare:` imports don't need to be included explicitly - if (spec.startsWith("node:") || spec.startsWith("cloudflare:")) { + // The `__STATIC_CONTENT_MANIFEST` module is generated by Workers Sites. + if ( + spec.startsWith("node:") || + spec.startsWith("cloudflare:") || + spec === "__STATIC_CONTENT_MANIFEST" + ) { return; }