diff --git a/.changeset/fifty-doors-cry.md b/.changeset/fifty-doors-cry.md deleted file mode 100644 index 8ea89b65d..000000000 --- a/.changeset/fifty-doors-cry.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@pandabox/unplugin': minor ---- - -- 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) diff --git a/packages/unplugin/CHANGELOG.md b/packages/unplugin/CHANGELOG.md index 22741b6f7..e5272b92a 100644 --- a/packages/unplugin/CHANGELOG.md +++ b/packages/unplugin/CHANGELOG.md @@ -1,5 +1,26 @@ # @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 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) + ## 0.0.2 ### Patch Changes diff --git a/packages/unplugin/package.json b/packages/unplugin/package.json index 0ab4eb8d4..505593ace 100644 --- a/packages/unplugin/package.json +++ b/packages/unplugin/package.json @@ -1,7 +1,7 @@ { "name": "@pandabox/unplugin", "type": "module", - "version": "0.0.2", + "version": "0.1.0", "packageManager": "pnpm@8.6.12", "description": "Panda CSS as a Vite/Rollup/Webpack/Esbuild plugin", "exports": {