- Notifications
You must be signed in to change notification settings - Fork3
Static code extraction. Zero-runtime CSS-in-TS `<Box />` -> became a part of Panda CSS
astahmer/box-extractor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
this repo was inlined inPanda CSS (here inthis PR) and will therefore no longer be maintained, code now living inthe current @pandacss/extractor package
Static code extraction. Zero-runtime CSS-in-TS<Box />
Optimize your code and elevate your developer experience with compile-time optimizations from static analysis.
💎 Enhanced DX close toChakra-UI's<Box />
withouttheruntimecost
✂️ Smaller CSS/JS output (up to 99%) with compile-time purge just like Tailwind CSS
🎯 Over 180k props/values/conditions combinations, only 1 used in your app, only 1 will remain
🔍 Smart analyzer built-in for near instant drop-in benefits
💾 Low-level AST output with access tots-morph
Node
objects for fine-grained control
if you need the static analysis (usingts-morph on components props/functions args:
pnpmadd @box-extractor/core
or you could try it like this:
pnpx @box-extractor/cli-ipath/to/input.ts-opath/to/report.json--functions="css,styled"--components="div,factory.*,SomeComponent"
About
Static code extraction. Zero-runtime CSS-in-TS `<Box />` -> became a part of Panda CSS