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
semver
package
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
svgo
tofalse
) - Refactored loader code
- Updated packages:
svgo
tov1.1.1
vuepress
tov0.14.4
vue-tabs-component
tov1.5.0
- ... and a lot non-direct dependencies
v0.9.0
- Added
class
/style
merging behavior forfunctional
SVG components
v0.8.0
- Added ability to use SVG's as
functional
components (Thank you @henriqemalheiros!)
v0.7.0
- Upgrade
vuepress
andvue-template-compiler
v0.6.0
- Removed the
toString
from the SVG component definition
v0.5.0
- Upgraded
svgo
to v1.0.4 (#13, #16) - Removed useless
svgo
config - Refactored compiler code -
render
function is not usingwith
statement 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());