Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Sep 4, 2023. It is now read-only.
/box-extractorPublic archive

Static code extraction. Zero-runtime CSS-in-TS `<Box />` -> became a part of Panda CSS

NotificationsYou must be signed in to change notification settings

astahmer/box-extractor

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-morphNode objects for fine-grained control

Installation

core (static AST extraction)

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"

[8]ページ先頭

©2009-2025 Movatter.jp