Skip to content

Commit c31be82

Browse files
committed
fix: global name
1 parent 8f447e3 commit c31be82

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

rollup.config.mjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ function makeRollupConfig(pkg) {
127127
file: path.join(pkg.location, "dist", "umd", "browser.js"),
128128
format: "umd",
129129
name: umdConfig.name,
130-
globals: globals
130+
globals: {
131+
...globals,
132+
...umdConfig.globals
133+
}
131134
},
132135
external: Object.keys(umdConfig.globals ?? {}),
133136
plugins: [...plugins, minify({ sourceMap: true })]
@@ -153,7 +156,7 @@ function makeRollupConfig(pkg) {
153156
const builderConfigs = pkgs.map(makeRollupConfig).flat();
154157

155158
builderConfigs.sort((_, b) => {
156-
if (b.output.format === "umd") return -1
157-
})
159+
if (b.output.format === "umd") return -1;
160+
});
158161

159-
export default Promise.all(builderConfigs);
162+
export default Promise.all(builderConfigs);

0 commit comments

Comments
 (0)