It achieves exactly what this loader tries to do in the render function but so much simpler
So it might be worth documenting that we can get a simple result with the default vue loader. Or to integrate this solution into svg-to-vue to avoid the need for babel, see https://github.com/visualfanatic/svg-to-vue/pull/28 for what it would look like, which would give you 100% the same output but defers the logic to vue-template-compiler which is already a dependency
I believe importing an svg that is just an xml template doesn't require any logic in the component
So why is there? The svgToVue dependency uses a spread operator and there is some logic in the generated vue component that doesn't work without babel
Wouldn't it be so much easier on everyone if the component was just a functional component without even a script?
Eg: entire vue file
It achieves exactly what this loader tries to do in the render function but so much simpler
So it might be worth documenting that we can get a simple result with the default vue loader. Or to integrate this solution into svg-to-vue to avoid the need for babel, see https://github.com/visualfanatic/svg-to-vue/pull/28 for what it would look like, which would give you 100% the same output but defers the logic to vue-template-compiler which is already a dependency
vue cli config
webpack config