Stop handling 'global' in the Node-specific bundles (#6124)
This commit is contained in:
1 parent
7a76e5d08e
commit
bd8e22497d
2 files changed
+7
-2
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user