Refactor some Object.assign (#7437)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-01-31 09:13:37 +09:00
1 parent 947a174954
commit 0370f47cb3
8 files changed
+90 -108

No files matched your search

+4 -6
View File
@@ -133,12 +133,10 @@ function getRollupConfig(bundle) {
extensions: [".js", ".json"],
preferBuiltins: bundle.target === "node"
}),
commonjs(
Object.assign(
bundle.target === "node" ? { ignoreGlobal: true } : {},
bundle.commonjs
)
),
commonjs({
ignoreGlobal: bundle.target === "node",
...bundle.commonjs
}),
externals(bundle.externals),
bundle.target === "universal" && nodeGlobals(),
babelConfig && babel(babelConfig),