Add optimizeJs option to optionally transform your source code by inlining the css / cva / ${patternFn}
resulting classNames or even simplify styled JSX factory to their primitive HTML tags (originally coming from
@pandabox/unplugin-panda-macro)
-> This is enabled by default and can be disabled by setting optimizeJs to false or "macro" (to only transform
functions using with { type: "macro" })
Transform cva to an optimized string-version of the cva function :
-> Style objects are converted to class strings, this might not work when styles should be merged and you can opt-out
of this by using with { type: "runtime" } on your cva import or by setting optimizeJs to false (or macro to
only transform functions using with { type: "macro" })
'@pandabox/unplugin': minor
Fix CSS generation when using
outfile
Add
optimizeJs
option to optionally transform your source code by inlining thecss
/cva
/${patternFn}
resulting classNames or even simplifystyled
JSX factory to their primitive HTML tags (originally coming from@pandabox/unplugin-panda-macro
)-> This is enabled by default and can be disabled by setting
optimizeJs
tofalse
or"macro"
(to only transform functions usingwith { type: "macro" }
)Transform
cva
to an optimized string-version of thecva
function :-> Style objects are converted to class strings, this might not work when styles should be merged and you can opt-out of this by using
with { type: "runtime" }
on yourcva
import or by settingoptimizeJs
to false (ormacro
to only transform functions usingwith { type: "macro" }
)Add e2e tests (in-browser + HMR)