diff --git a/.changeset/rare-lions-compare.md b/.changeset/rare-lions-compare.md deleted file mode 100644 index aa5a100d..00000000 --- a/.changeset/rare-lions-compare.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@tailwindcss-mangle/core": minor -"unplugin-tailwindcss-mangle": minor ---- - -Add AST-based transformation support for Vue SFC, Svelte components, and JSX/TSX using framework-specific compilers. This provides more precise class name mangling for framework-specific files. - -**Features:** -- Vue SFC handler: Parse and transform classes in template, script, and style sections using `@vue/compiler-sfc` -- Svelte handler: Parse and transform classes in components with support for class directives using `svelte/compiler` -- JSX/TSX support: Enable Babel `jsx` and `typescript` plugins for proper React component transformation -- Proper AST traversal for accurate class name replacement in all framework files -- Comprehensive test coverage for Vue, Svelte, and JSX/TSX transformations diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index fee19e02..5590aaf7 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,18 @@ # @tailwindcss-mangle/core +## 5.1.0 + +### Minor Changes + +- [`5ecbf02`](https://github.com/sonofmagic/tailwindcss-mangle/commit/5ecbf02acdcbd1e727a375c880df4805f4082b7b) Thanks [@sonofmagic](https://github.com/sonofmagic)! - Add AST-based transformation support for Vue SFC, Svelte components, and JSX/TSX using framework-specific compilers. This provides more precise class name mangling for framework-specific files. + + **Features:** + - Vue SFC handler: Parse and transform classes in template, script, and style sections using `@vue/compiler-sfc` + - Svelte handler: Parse and transform classes in components with support for class directives using `svelte/compiler` + - JSX/TSX support: Enable Babel `jsx` and `typescript` plugins for proper React component transformation + - Proper AST traversal for accurate class name replacement in all framework files + - Comprehensive test coverage for Vue, Svelte, and JSX/TSX transformations + ## 5.0.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 490522ac..11c25c47 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@tailwindcss-mangle/core", "type": "module", - "version": "5.0.1", + "version": "5.1.0", "description": "The core of tailwindcss-mangle", "author": "ice breaker <1324318532@qq.com>", "license": "MIT", diff --git a/packages/unplugin-tailwindcss-mangle/CHANGELOG.md b/packages/unplugin-tailwindcss-mangle/CHANGELOG.md index f8ea7f0e..81b7e794 100644 --- a/packages/unplugin-tailwindcss-mangle/CHANGELOG.md +++ b/packages/unplugin-tailwindcss-mangle/CHANGELOG.md @@ -1,5 +1,23 @@ # unplugin-tailwindcss-mangle +## 5.1.0 + +### Minor Changes + +- [`5ecbf02`](https://github.com/sonofmagic/tailwindcss-mangle/commit/5ecbf02acdcbd1e727a375c880df4805f4082b7b) Thanks [@sonofmagic](https://github.com/sonofmagic)! - Add AST-based transformation support for Vue SFC, Svelte components, and JSX/TSX using framework-specific compilers. This provides more precise class name mangling for framework-specific files. + + **Features:** + - Vue SFC handler: Parse and transform classes in template, script, and style sections using `@vue/compiler-sfc` + - Svelte handler: Parse and transform classes in components with support for class directives using `svelte/compiler` + - JSX/TSX support: Enable Babel `jsx` and `typescript` plugins for proper React component transformation + - Proper AST traversal for accurate class name replacement in all framework files + - Comprehensive test coverage for Vue, Svelte, and JSX/TSX transformations + +### Patch Changes + +- Updated dependencies [[`5ecbf02`](https://github.com/sonofmagic/tailwindcss-mangle/commit/5ecbf02acdcbd1e727a375c880df4805f4082b7b)]: + - @tailwindcss-mangle/core@5.1.0 + ## 5.0.0 ### Major Changes diff --git a/packages/unplugin-tailwindcss-mangle/package.json b/packages/unplugin-tailwindcss-mangle/package.json index 7d535870..828f4d1c 100644 --- a/packages/unplugin-tailwindcss-mangle/package.json +++ b/packages/unplugin-tailwindcss-mangle/package.json @@ -1,7 +1,7 @@ { "name": "unplugin-tailwindcss-mangle", "type": "module", - "version": "5.0.0", + "version": "5.1.0", "description": "mangle tailwindcss utilities class plugin. support vite and webpack!", "author": "ice breaker <1324318532@qq.com>", "license": "MIT",