From d1910f24a47744a908b45119f6b9b98b66c16531 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sat, 4 Mar 2023 01:32:22 +0800 Subject: [PATCH] fix: correctly specify multiple external dependencies in package.json --- src/rollup/plugins/externals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollup/plugins/externals.ts b/src/rollup/plugins/externals.ts index 80306689db..7325250aa2 100644 --- a/src/rollup/plugins/externals.ts +++ b/src/rollup/plugins/externals.ts @@ -434,7 +434,7 @@ export function externals(opts: NodeExternalsOptions): Plugin { const bundledDependencies = Object.fromEntries( Object.values(tracedPackages) .sort((a, b) => a.name.localeCompare(b.name)) - .map((pkg) => [pkg.name, Object.keys(pkg.versions).join(" | ")]) + .map((pkg) => [pkg.name, Object.keys(pkg.versions).join(" || ")]) ); await fsp.writeFile(