Skip to content

Commit 6bae1e2

Browse files
committed
formatting
1 parent 4fc18c9 commit 6bae1e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,12 @@ 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(String.raw`^\./require-hook$`, { escape: false }) }, () => ({
188-
path: path.join(config.paths.internal.templates, "shims", "empty.js"),
189-
}));
187+
build.onResolve(
188+
{ filter: getCrossPlatformPathRegex(String.raw`^\./require-hook$`, { escape: false }) },
189+
() => ({
190+
path: path.join(config.paths.internal.templates, "shims", "empty.js"),
191+
})
192+
);
190193
},
191194
};
192195
}

0 commit comments

Comments
 (0)