You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pack): harden tsdown extension wiring and lightningcss version sync
- wireBundledTsdownExtensions: scan every emitted chunk (not just
build-*.js) and assert the bundled ./tsdown-css.js is referenced, so a
rolldown chunking change can't silently ship an unrewritten import.
- upgrade-deps: match any lightningcss range value so a non-caret range
from @tsdown/css can't poison the next run's pattern.
- rfc: lightningcss is a core dependency, not an optional peer.
Copy file name to clipboardExpand all lines: rfcs/pack-command.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -300,7 +300,7 @@ These are distinct commands:
300
300
- Ensures consistent tsdown version across all vite-plus users
301
301
- Avoids version conflicts in monorepos
302
302
- The core build process bundles JS, CJS deps, and types together
303
-
- The extensions peer-depend on `tsdown`/`tsdown/internal`, which Vite+ does not expose as a top-level package, so bundling them is the only way they resolve (issue #1586). Only `lightningcss` (native) stays externalas an optional peer.
303
+
- The extensions peer-depend on `tsdown`/`tsdown/internal`, which Vite+ does not expose as a top-level package, so bundling them is the only way they resolve (issue #1586). Only `lightningcss` (native, cannot be bundled) stays external; it ships as a regular core dependency.
304
304
305
305
### 4. Category C Delegation
306
306
@@ -404,7 +404,7 @@ This RFC documents an existing command with no breaking changes:
404
404
- All existing `vp pack` options continue to work
405
405
- The new `--exe` flag is purely additive
406
406
- Config format in`vite.config.ts` is unchanged
407
-
- Bundling `@tsdown/exe`/`@tsdown/css` is a strict improvement: projects that previously installed them keep working and no longer need to. CSS bundling now only requires the optional`lightningcss`peer (`vp add -D lightningcss`), which is loaded lazily with an actionable error when missing.
407
+
- Bundling `@tsdown/exe`/`@tsdown/css` is a strict improvement: projects that previously installed them keep working and no longer need to. CSS bundling works out of the box,`lightningcss`is a core dependency that ships with the toolchain, so nothing extra needs installing.
0 commit comments