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
Copy file name to clipboardExpand all lines: docs/type-generation.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,11 @@ Use `--hashed` when you want `.knighted-css` proxy modules to export `selectors`
60
60
CSS Modules hashing instead of stable selector strings. This keeps the module and selector
61
61
types while preserving hashed class names at runtime.
62
62
63
+
> [!NOTE]
64
+
> `--hashed` derives the selector list from the compiled CSS, so the generated sidecar can
65
+
> include class names that are not exported by the module (for example, sprinkles output from
66
+
> vanilla-extract). At runtime, `selectors` reflects only exported locals from the loader bridge, so the runtime map can be a subset of the generated sidecar.
67
+
63
68
> [!IMPORTANT]
64
69
> `--hashed` requires the bundler to route `?knighted-css` imports through
65
70
> `@knighted/css/loader-bridge`, so the proxy can read `knightedCss` and
Copy file name to clipboardExpand all lines: packages/css/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@knighted/css",
3
-
"version": "1.1.0",
3
+
"version": "1.1.1",
4
4
"description": "A build-time utility that traverses JavaScript/TypeScript module dependency graphs to extract, compile, and optimize all imported CSS into a single, in-memory string.",
0 commit comments