Skip to content

Commit 7e9587b

Browse files
committed
Use different globalName for different package bundles
1 parent 13e4b0f commit 7e9587b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ for (const { format, platform, entryPoint, minify } of bundles) {
9090
const prefix = join(options.output, name);
9191

9292
await build({
93-
globalName: 'ZenFS',
93+
globalName: packageName == 'all' ? 'ZenFS' : 'ZenFS_' + packageName,
9494
bundle: true,
9595
outfile: prefix + '.js',
9696
entryPoints: [join(entryDir, entryPoint)],

0 commit comments

Comments
 (0)