this repo was inlined in Panda CSS (here in this PR) and will therefore no longer be maintained, code now living in the current @pandacss/extractor package
π¦ box-extractor
Static code extraction. Zero-runtime CSS-in-TS <Box />
Optimize your code and elevate your developer experience with compile-time optimizations from static analysis.
<Box />
without the runtime cost
ts-morph
Node
objects for fine-grained control
Installation
core (static AST extraction)
if you need the static analysis (using ts-morph on components props/functions args:
pnpm add @box-extractor/core
or you could try it like this:
pnpx @box-extractor/cli -i path/to/input.ts -o path/to/report.json --functions="css,styled" --components="div,factory.*,SomeComponent"