I have added component export.
Using vue-simple-svg as a component will make code splitting better.
I make it in a backward compatible way, but for now, Rollup throws a warning that mixing named and default exports is a bad practice. If you want, I can change to only named export, like this:
export {plugin as SimpleSVGPlugin, SimpleSVG as SimpleSVGComponent}
But in my opinion, mixed export is fine, because vue-simple-svg is not intended to be used as CommonJS module.
Also feel free to change naming, if you are not fully satisfied with it
I have added component export. Using
vue-simple-svg
as a component will make code splitting better.I make it in a backward compatible way, but for now, Rollup throws a warning that mixing named and default exports is a bad practice. If you want, I can change to only named export, like this:
But in my opinion, mixed export is fine, because
vue-simple-svg
is not intended to be used as CommonJS module.Also feel free to change naming, if you are not fully satisfied with it