Skip to content

Commit dae275f

Browse files
docs: fix heading level.
1 parent b7fbbde commit dae275f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/loader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import { knightedCss, stableSelectors } from './card.js?knighted-css&types'
6060
> [!NOTE]
6161
> TypeScript does not infer the stable selector literal types from this import; use the generated `.knighted-css.*` modules described in [docs/type-generation.md](./type-generation.md) for compile-time safety. The runtime map is helpful for tests, telemetry, or non-TypeScript environments.
6262
63-
#### vanilla-extract loader guidance
63+
### vanilla-extract loader guidance
6464

6565
vanilla-extract files (`*.css.ts`) compile down to CommonJS by default. That works out of the box for the loader—both `?knighted-css` and `?knighted-css&combined` queries emit `module.exports` artifacts plus the injected `knightedCss` string. Most bundlers happily consume that shape. When you _also_ need the compiled module to behave like a native ESM module (e.g., your bundler expects `export` statements so it can treeshake or when you import via extension aliases), enable the loader’s opt-in transform:
6666

0 commit comments

Comments
 (0)