Skip to content

@pandabox/unplugin@0.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Apr 08:15
· 18 commits to main since this release
8176eb6

Minor Changes

  • c1b48fd: - Fix CSS generation when using outfile

    • 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" })

    • Add e2e tests (in-browser + HMR)