# CHANGE LOG ## v4.5.1 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.5.0...v4.5.1) ### 🩹 Fixes - Return a null source map when imports as raw text or url ([3e45156](https://github.com/yisibell/vite-plugin-svg4vue/commit/3e45156)) ### ❤️ Contributors - Wenqing ## v4.5.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.4.0...v4.5.0) ### 🚀 Enhancements - Support disabled enforce config via `false` ([8df0184](https://github.com/yisibell/vite-plugin-svg4vue/commit/8df0184)) ### ❤️ Contributors - Wenqing ## v4.4.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.3.0...v4.4.0) ### 🚀 Enhancements - Add plugin invocation order config via `enforce`, defaults is `pre` ([e15ba6d](https://github.com/yisibell/vite-plugin-svg4vue/commit/e15ba6d)) ### ❤️ Contributors - Wenqing ## v4.3.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.2.0...v4.3.0) ### 🚀 Enhancements - Use file id for selector namespace generation and add `namespacePrefix` opts ([6d0554e](https://github.com/yisibell/vite-plugin-svg4vue/commit/6d0554e)) ### ❤️ Contributors - Wenqing ## v4.2.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.1.1...v4.2.0) ### 🚀 Enhancements - Add selector namespace for id and class ([a2ff554](https://github.com/yisibell/vite-plugin-svg4vue/commit/a2ff554)) ### 🩹 Fixes - Class namespaces ([3d261d2](https://github.com/yisibell/vite-plugin-svg4vue/commit/3d261d2)) ### 🏡 Chore - **example:** Update ([c05f69d](https://github.com/yisibell/vite-plugin-svg4vue/commit/c05f69d)) ### ❤️ Contributors - Wenqing - Elenh ([@yisibell](http://github.com/yisibell)) ## v4.1.1 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.1.0...v4.1.1) ### 🩹 Fixes - To prevent compileTemplate from removing the style tag ([c0e2426](https://github.com/yisibell/vite-plugin-svg4vue/commit/c0e2426)) ### ❤️ Contributors - Wenqing ## v4.1.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.0.4...v4.1.0) ### 🚀 Enhancements - Support skip monochrome and responsive size ([7afc7c5](https://github.com/yisibell/vite-plugin-svg4vue/commit/7afc7c5)) ### ❤️ Contributors - Wenqing ## v4.0.4 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.0.3...v4.0.4) ### 🩹 Fixes - Exports ([80a0f1c](https://github.com/yisibell/vite-plugin-svg4vue/commit/80a0f1c)) ### ❤️ Contributors - Wenqing ## v4.0.3 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.0.2...v4.0.3) ### 🩹 Fixes - Eslint flat config ([cd5f23f](https://github.com/yisibell/vite-plugin-svg4vue/commit/cd5f23f)) ### ❤️ Contributors - Wenqing ## v4.0.2 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.0.1...v4.0.2) ## v4.0.1 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v4.0.0...v4.0.1) ### 🩹 Fixes - Client.d.ts exports problem ([e038999](https://github.com/yisibell/vite-plugin-svg4vue/commit/e038999)) - Exports ([69fcc96](https://github.com/yisibell/vite-plugin-svg4vue/commit/69fcc96)) - Exports ([440b23b](https://github.com/yisibell/vite-plugin-svg4vue/commit/440b23b)) ### 🏡 Chore - **example:** Update example build ([b51c545](https://github.com/yisibell/vite-plugin-svg4vue/commit/b51c545)) ### ❤️ Contributors - Wenqing ## v4.0.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v3.2.0...v4.0.0) ### 🚀 Enhancements - ⚠️ Support for vite v6 ([50b6b8a](https://github.com/yisibell/vite-plugin-svg4vue/commit/50b6b8a)) #### ⚠️ Breaking Changes - ⚠️ Support for vite v6 ([50b6b8a](https://github.com/yisibell/vite-plugin-svg4vue/commit/50b6b8a)) ### ❤️ Contributors - Wenqing ## v3.2.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v3.1.2...v3.2.0) ### 🚀 Enhancements - Upgrade vite peerDependencies version ([5a79d53](https://github.com/yisibell/vite-plugin-svg4vue/commit/5a79d53)) ### ❤️ Contributors - Wenqing ## v3.1.2 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v3.1.1...v3.1.2) ## v3.1.1 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v3.1.0...v3.1.1) ### 🏡 Chore - **example:** Update glob example ([54f3126](https://github.com/yisibell/vite-plugin-svg4vue/commit/54f3126)) - Update example site and docs ([a7ebdfd](https://github.com/yisibell/vite-plugin-svg4vue/commit/a7ebdfd)) ### ❤️ Contributors - Wenqing ## v3.1.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v3.0.0...v3.1.0) ### 🚀 Enhancements - Make `search params` disordered https://github.com/yisibell/vite-plugin-svg4vue/issues/5 ([ccb5b8a](https://github.com/yisibell/vite-plugin-svg4vue/commit/ccb5b8a)) ### 🏡 Chore - Update readme ([f7fd7cc](https://github.com/yisibell/vite-plugin-svg4vue/commit/f7fd7cc)) ### ❤️ Contributors - Wenqing ## v3.0.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.17.1...v3.0.0) ### 🚀 Enhancements - **vite:** ⚠️ Support for vite v5 ([cbd1ee8](https://github.com/yisibell/vite-plugin-svg4vue/commit/cbd1ee8)) #### ⚠️ Breaking Changes - **vite:** ⚠️ Support for vite v5 ([cbd1ee8](https://github.com/yisibell/vite-plugin-svg4vue/commit/cbd1ee8)) ### ❤️ Contributors - Wenqing ## v2.17.1 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.17.0...v2.17.1) ### 🩹 Fixes - Do not return config from hook ([7590dab](https://github.com/yisibell/vite-plugin-svg4vue/commit/7590dab)) - Use configResolved + config.mode ([3d091e8](https://github.com/yisibell/vite-plugin-svg4vue/commit/3d091e8)) - Use resolved config + mode rather than modifying or mutating config ([8219678](https://github.com/yisibell/vite-plugin-svg4vue/commit/8219678)) ### ❤️ Contributors - Wenqing - Daniel Roe ## v2.17.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.16.0...v2.17.0) ### 🚀 Enhancements - Update typescript to v5 and other non-major deps ([042091d](https://github.com/yisibell/vite-plugin-svg4vue/commit/042091d)) ### ❤️ Contributors - Wenqing ## v2.16.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.15.0...v2.16.0) ### 🚀 Enhancements - Support for vite 4.4 vue 3.3 ([6e56e2b](https://github.com/yisibell/vite-plugin-svg4vue/commit/6e56e2b)) ### 🏡 Chore - **example:** Update example ([511e742](https://github.com/yisibell/vite-plugin-svg4vue/commit/511e742)) - **example:** Update favicon ([fde54c8](https://github.com/yisibell/vite-plugin-svg4vue/commit/fde54c8)) - **example:** Update example ([6569490](https://github.com/yisibell/vite-plugin-svg4vue/commit/6569490)) - Migrate to pnpm ([bc04f7c](https://github.com/yisibell/vite-plugin-svg4vue/commit/bc04f7c)) ### ❤️ Contributors - Wenqing ## v2.15.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.14.0...v2.15.0) ### 🚀 Enhancements - **cache:** Using id as build cache key instead of idWithoutQuery ([ab30049](https://github.com/yisibell/vite-plugin-svg4vue/commit/ab30049)) ### 🩹 Fixes - **example:** Example 404 error ([93ecab6](https://github.com/yisibell/vite-plugin-svg4vue/commit/93ecab6)) ### 🏡 Chore - **example:** Update example ([a394ec4](https://github.com/yisibell/vite-plugin-svg4vue/commit/a394ec4)) ### ❤️ Contributors - Wenqing ## v2.14.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.13.0...v2.14.0) ### 🚀 Enhancements - Upgrade deps svgo-extra to 2.1 ([7ab6d12](https://github.com/yisibell/vite-plugin-svg4vue/commit/7ab6d12)) ### 🏡 Chore - **docs:** Update readme ([fa6d9ec](https://github.com/yisibell/vite-plugin-svg4vue/commit/fa6d9ec)) ### ❤️ Contributors - Elenh ([@yisibell](http://github.com/yisibell)) - Wenqing ## v2.13.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.12.0...v2.13.0) ### 🚀 Enhancements - Support source map ([b67b947](https://github.com/yisibell/vite-plugin-svg4vue/commit/b67b947)) ### ❤️ Contributors - Wenqing ## v2.12.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.11.0...v2.12.0) ### 🚀 Enhancements - Support work with arbitrary file path via set assetsDirName to false ([88a21c2](https://github.com/yisibell/vite-plugin-svg4vue/commit/88a21c2)) ### 🏡 Chore - **example:** Fix example build error ([af8b7e2](https://github.com/yisibell/vite-plugin-svg4vue/commit/af8b7e2)) ### ❤️ Contributors - Wenqing ## v2.11.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.10.0...v2.11.0) ### 🚀 Enhancements - Update svgo-extra to 2.0.0 ([f8d2fa4](https://github.com/yisibell/vite-plugin-svg4vue/commit/f8d2fa4)) ### ❤️ Contributors - Wenqing ## v2.10.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.9.0...v2.10.0) ### 🚀 Enhancements - Update pkg to module type ([1e84f47](https://github.com/yisibell/vite-plugin-svg4vue/commit/1e84f47)) ### 🏡 Chore - **example:** Update deploy branch ([80f9ecf](https://github.com/yisibell/vite-plugin-svg4vue/commit/80f9ecf)) ### ❤️ Contributors - Wenqing ## v2.9.0 [compare changes](https://github.com/yisibell/vite-plugin-svg4vue/compare/v2.8.2...v2.9.0) ### 🚀 Enhancements - Upgrade vite to 4.3 ([b591dd5](https://github.com/yisibell/vite-plugin-svg4vue/commit/b591dd5)) ### 🏡 Chore - **docs:** Update readme ([96b384a](https://github.com/yisibell/vite-plugin-svg4vue/commit/96b384a)) ### ❤️ Contributors - Wenqing ## v2.8.2 ### 🏡 Chore - **docs:** Update readme (920bb21) - Update example (e64775d) - **docs:** Update readme (8579dd2) ### ❤️ Contributors - Wenqing ## v2.8.1 ### 🩹 Fixes - GetSearchParams use URL error (6e87abb) ### 🏡 Chore - Fix example deps (533c650) ### ❤️ Contributors - Wenqing ## v2.8.0 ### 🚀 Enhancements - Support skipsvgo search param (e3bef55) - Support disabled svgo global (dd31b25) ### ❤️ Contributors - Wenqing ## v2.7.0 ### 🚀 Enhancements - Support switch svgo preset-default configuration (d6ac771) ### 🏡 Chore - **docs:** Update example (0697b1e) - **docs:** Update readme (160df31) - **docs:** Update readme (d39d5e9) ### ❤️ Contributors - Wenqing ## v2.6.1 ### 🏡 Chore - **docs:** Update readme (15949b4) ### ❤️ Contributors - Elenh ([@yisibell](http://github.com/yisibell)) ## v2.6.0 ### 🚀 Enhancements - **svgo-plugins:** Move built-in svgo plugins into svgo-extra (6bbbda6) ### 🏡 Chore - **docs:** Update readme (43ad361) ### ❤️ Contributors - Wenqing ## v2.5.1 ### 🩹 Fixes - Add css vars error (7ccce52) ### ❤️ Contributors - Wenqing ## v2.5.0 ### 🚀 Enhancements - Add origin size with unit css vars (2dd2453) ### 🏡 Chore - **docs:** Update readme (9e274b2) - **example:** Update example (b402604) ### ❤️ Contributors - Wenqing ## v2.4.0 ### 🚀 Enhancements - Support modifying fill-opacity and stroke-opacity on the svg node (5252255) ### 🏡 Chore - **example:** Update example (585ae02) - **docs:** Update readme (3282e0c) - **example:** Fix example deploy error (dcad7b9) ### ❤️ Contributors - Wenqing ## v2.3.1 ### 🏡 Chore - **docs:** Update readme (ebcb3fa) ### ❤️ Contributors - Wenqing ## v2.3.0 ### 🚀 Enhancements - Support optimize svg stroke attribute so that you can change a outline svg color (ba88849) ### ❤️ Contributors - Wenqing ## v2.2.2 ### 🏡 Chore - **example:** Update example (fb8f68a) ### ❤️ Contributors - Wenqing ## v2.2.1 ### 🩹 Fixes - Raw svg compile error (7f437be) ### ❤️ Contributors - Wenqing ## v2.2.0 ### 🚀 Enhancements - Support raw svg optimize (70adae7) ### ❤️ Contributors - Wenqing ## v2.1.6 ### 📦 Build - Upgrade rollup config for load json file (c2c4ebc) ### 🏡 Chore - Update readme docs (bdfab83) ### ❤️ Contributors - Wenqing ## 2.1.0 (2022-12-21) **Upgrade** 1. upgrade `svgo plugin` definition. **Features** 1. Support change svg icon size with `font-size` and it will be responsive. ## 2.0.0 (2022-12-21) **Breaking changes** 1. As of **@vue/compiler-sfc** 3.2.13+, this package is included as a dependency of the main **vue** package and can be accessed as `vue/compiler-sfc`. This means you no longer need to explicitly install this package and ensure its version match that of vue's. Just use the main `vue/compiler-sfc` deep import instead. 2. Change **svgo** default config. **Features** 1. Support change svg icon color when the svg is a monochrome svg icon. ## 1.2.0 (2022-12-20) **Features** 1. Support caching at build time. ## 1.1.1 (2022-12-20) **Bugfixs** 1. fix package.json `files`. ## 1.1.0 (2022-12-20) **Features** 1. Support `assetsDirName` to Limit the svg icon in a folder. 2. Add declaration file for Vue app. [client.d.ts]('./client.d.ts'). 3. Change `defaultExport` to `url`.