Skip to content

Commit 4fc18c9

Browse files
authored
Update packages/cloudflare/src/cli/build/bundle-server.ts
1 parent 213025c commit 4fc18c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/cli/build/bundle-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function createFixRequiresESBuildPlugin(config: Config): Plugin {
184184
name: "replaceRelative",
185185
setup(build) {
186186
// Note: we (empty) shim require-hook modules as they generate problematic code that uses requires
187-
build.onResolve({ filter: getCrossPlatformPathRegex("^\\./require-hook$", { escape: false }) }, () => ({
187+
build.onResolve({ filter: getCrossPlatformPathRegex(String.raw`^\./require-hook$`, { escape: false }) }, () => ({
188188
path: path.join(config.paths.internal.templates, "shims", "empty.js"),
189189
}));
190190
},

0 commit comments

Comments
 (0)