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
refactor(pack): ship lightningcss as a core dependency, not an optional peer
lightningcss is already a core dependency (Vite's lightningcss transformer
uses it), so the bundled @tsdown/css can use it directly and CSS bundling
works with no extra install. Revert the optional-peer + loader churn: keep
lightningcss in dependencies (via catalog) and drop the
__vpImportLightningcss helper and the missing-lightningcss snap test.
Copy file name to clipboardExpand all lines: docs/guide/pack.md
+1-9Lines changed: 1 addition & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,12 +66,4 @@ See the official [tsdown executable docs](https://tsdown.dev/options/exe#executa
66
66
67
67
## CSS Bundling
68
68
69
-
`vp pack` can transform and bundle CSS (including CSS Modules and Lightning CSS optimizations) for your entry points. This support is bundled into Vite+, so you do not need to install `@tsdown/css`.
70
-
71
-
CSS transforms are powered by [Lightning CSS](https://lightningcss.dev/), which ships as a native module and is an optional peer dependency. Install it when you bundle CSS:
72
-
73
-
```bash
74
-
vp add -D lightningcss
75
-
```
76
-
77
-
If it is missing, `vp pack` prints an actionable error telling you to install it.
69
+
`vp pack` can transform and bundle CSS (including CSS Modules and [Lightning CSS](https://lightningcss.dev/) optimizations) for your entry points. This support is bundled into Vite+, so you do not need to install `@tsdown/css` or `lightningcss` separately, it works out of the box.
0 commit comments