You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 damianstasik/svg-to-vue#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 damianstasik/svg-to-vue#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
The text was updated successfully, but these errors were encountered: