Stop handling 'global' in the Node-specific bundles (#6124)

master
Lucas Duailibe 2019-05-15 12:57:04 -03:00 committed by GitHub
parent 7a76e5d08e
commit bd8e22497d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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 "));

View File

@ -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()