Skip to content

Commit 1eca0b1

Browse files
committed
Update rollup config to replace deprecated pureExternalModules with moduleSideEffects
1 parent db5e625 commit 1eca0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rollup/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ async function createBundle(bundle, bundleType) {
564564
const rollupConfig = {
565565
input: resolvedEntry,
566566
treeshake: {
567-
pureExternalModules,
567+
moduleSideEffects: (id, external) => !(external && pureExternalModules.includes(id)),
568568
},
569569
external(id) {
570570
const containsThisModule = pkg => id === pkg || id.startsWith(pkg + '/');

0 commit comments

Comments
 (0)