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

This commit is contained in:
Lucas Duailibe authored and GitHub committed 2019-05-15 12:57:04 -03:00
1 parent 7a76e5d08e
commit bd8e22497d
2 files changed
+7 -2

No files matched your search

+6 -1
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()