Releases: damianstasik/vue-svg-loader
Releases · damianstasik/vue-svg-loader
v0.17.0-beta.2
- Updated non-direct dependencies
- Fixed issue with missing SVGO
- Moved docs dependencies out to a separate
package.json - Reduced memory footprint by importing specific function from
semverpackage
v0.17.0-beta.0
Long time no see! It's been a while since the last release and the issue list has gotten quite long, it's time to fix this! I've been focused on my SVG-to-Vue plugin for Vite (vite-plugin-svg) and now that we are close to a stable release of Vue 3 I wanted to clean up this plugin too. I plan to continue supporting Vue 2, but you should see Vue 3 support in the following days.
You don't need to use babel-loader with this plugin, but you need to add vue-loader before vue-svg-loader. Please check out the documentation on the dev branch to see the configuration examples.
This move saves us from many headaches: broken IE 11, issues with event listeners, custom handling of class and style bindings and a few more caused by some of my decisions.
v0.16.0
v0.11.0
- Moved the logic to a separate package:
svg-to-vue, so that it can also be used byrollup-plugin-vue-svg. - Generated components:
- use ESM export format to take advantage of webpack's dead-code detection,
- are now set as
functional.
- Updated non-direct dependencies.
v0.10.0
- Added option to disable SVGO (set
svgotofalse) - Refactored loader code
- Updated packages:
svgotov1.1.1vuepresstov0.14.4vue-tabs-componenttov1.5.0- ... and a lot non-direct dependencies
v0.9.0
- Added
class/stylemerging behavior forfunctionalSVG components
v0.8.0
- Added ability to use SVG's as
functionalcomponents (Thank you @henriqemalheiros!)
v0.7.0
- Upgrade
vuepressandvue-template-compiler
v0.6.0
- Removed the
toStringfrom the SVG component definition
v0.5.0
- Upgraded
svgoto v1.0.4 (#13, #16) - Removed useless
svgoconfig - Refactored compiler code -
renderfunction is not usingwithstatement anymore (#18) - Changed how imported SVG file path can be retrieved, which helped simplify code a bit (#14)
import TestIcon from 'icons/test.svg';
// This will display an absolute path to the icon above
console.log(TestIcon.toString());