Skip to content

Commit 6d8f329

Browse files
committed
explain package.json
1 parent 4b4892b commit 6d8f329

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/generators/web/build/bundle.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export default async function bundle(code, { server = false } = {}) {
4343
}),
4444
cssLoader(),
4545
],
46+
// We have a `package.json` file in `ui/` with `sideEffects: false`.
47+
// This tells rolldown that we can safely tree-shake those files without
48+
// worry that it'll break the final result.
4649
treeshake: true,
4750
write: false,
4851
});

0 commit comments

Comments
 (0)