Skip to content

Commit 70da3fb

Browse files
committed
silence empty bundles warning
1 parent 821f02e commit 70da3fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rollup.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ function esmConfig() {
5959
`Circular dependency:\n${log.ids.map((id) => ' ' + id).join('\n')}\n`
6060
);
6161
throw new Error(`Circular dependencies are forbidden`);
62+
case 'EMPTY_BUNDLE':
63+
// Some of our entrypoints are type-only and result in empty bundles.
64+
// We prune the actual empty files elsewhere in this config (see
65+
// pruneEmptyBundles). This silences the warning from rollup about
66+
// them.
67+
return;
6268
default:
6369
handler(level, log);
6470
}

0 commit comments

Comments
 (0)