Skip to content

Commit 18ad6b1

Browse files
committed
fixup! restrict context
1 parent 85b783f commit 18ad6b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cloudflare/src/cli/build/patches/ast/webpack-runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function buildInlineChunksRule(chunks: number[]) {
2727
return `
2828
rule:
2929
pattern: ($CHUNK_ID, $_PROMISES) => { $$$ }
30+
inside: {pattern: $_.$_.require = $$$_, stopBy: end}
3031
all:
3132
- has: {pattern: $INSTALL(require("./chunks/" + $$$)), stopBy: end}
3233
- has: {pattern: $SELF_ID != $CHUNK_ID, stopBy: end}

0 commit comments

Comments
 (0)