Skip to content

Commit 7177f36

Browse files
vicbjames-elicx
andauthored
Update packages/cloudflare/src/cli/build/patches/plugins/optional-deps.ts
Co-authored-by: James Anderson <[email protected]>
1 parent f427917 commit 7177f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/cli/build/patches/plugins/optional-deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { OnResolveResult, PluginBuild } from "esbuild";
1414
export function handleOptionalDependencies(dependencies: string[]) {
1515
// Regex matching either a full module ("module") or a prefix ("module/...")
1616
const filter = new RegExp(
17-
`^(${dependencies.flatMap((name) => [`${name}$`, String.raw`${name}\/`]).join("|")})`
17+
`^(${dependencies.flatMap((name) => [`${name}$`, String.raw`${name}/`]).join("|")})`
1818
);
1919

2020
const name = "optional-deps";

0 commit comments

Comments
 (0)