Stop handling 'global' in the Node-specific bundles (#6124)
parent
7a76e5d08e
commit
bd8e22497d
|
@ -99,7 +99,7 @@ async function run(params) {
|
|||
await execa("rm", ["-rf", ".cache"]);
|
||||
}
|
||||
|
||||
const bundleCache = new Cache(".cache/", "v10");
|
||||
const bundleCache = new Cache(".cache/", "v11");
|
||||
await bundleCache.load();
|
||||
|
||||
console.log(chalk.inverse(" Building packages "));
|
||||
|
|
|
@ -119,7 +119,12 @@ function getRollupConfig(bundle) {
|
|||
extensions: [".js", ".json"],
|
||||
preferBuiltins: bundle.target === "node"
|
||||
}),
|
||||
commonjs(bundle.commonjs || {}),
|
||||
commonjs(
|
||||
Object.assign(
|
||||
bundle.target === "node" ? { ignoreGlobal: true } : {},
|
||||
bundle.commonjs
|
||||
)
|
||||
),
|
||||
bundle.target === "universal" && nodeGlobals(),
|
||||
babelConfig && babel(babelConfig),
|
||||
bundle.type === "plugin" && uglify()
|
||||
|
|
Loading…
Reference in New Issue