@pandabox/unplugin@0.1.0
Minor Changes
-
c1b48fd: - 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 usingwith { type: "runtime" }
on yourcva
import or by settingoptimizeJs
to false (ormacro
to
only transform functions usingwith { type: "macro" }
) -
Add e2e tests (in-browser + HMR)
-