Refactor some Object.assign (#7437)
This commit is contained in:
1 parent
947a174954
commit
0370f47cb3
8 files changed
+90
-108
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user