mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Update rollup config to use moduleSideEffects (#26199)
## Summary In rollup v1.19.4, The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead, see https://github.com/rollup/rollup/blob/v1.19.4/src/Graph.ts#L130. ## How did you test this change? ci green
This commit is contained in:
parent
db5e6250d4
commit
bc38a3dfa7
|
|
@ -564,7 +564,8 @@ async function createBundle(bundle, bundleType) {
|
|||
const rollupConfig = {
|
||||
input: resolvedEntry,
|
||||
treeshake: {
|
||||
pureExternalModules,
|
||||
moduleSideEffects: (id, external) =>
|
||||
!(external && pureExternalModules.includes(id)),
|
||||
},
|
||||
external(id) {
|
||||
const containsThisModule = pkg => id === pkg || id.startsWith(pkg + '/');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user