I've recently built a Vue.js component for lazy loading images and wanted to use microbundle for its setup, but couldn't make it work.
What's required to have Vue.js support?
Hmm - I'm not sure of a way to support compiling .vue files, since the vue compiler is typically used from a Webpack build process, right?
Originally yes, but nowadays there are also plugins for Parcel and Rollup. I see that rollit is using rollup-plugin-vue. So, I assume is a matter of adding the plugin?
I believe it would be a matter of detecting that your project is using .vue files and adding mentioned plugin conditionally.
I started to work on this.
I'm not super familiar with VueJs but the example that @alexjoverm gave is not using .vue extensions so maybe it would be better if we use something like --jsx option for adding vue support ?
Is there any progress now?
Sorry, my bad i completely forgot about this. Like i said, not a vue user so never needed it, which is probably why i forgot about it.
Sorry about that, not sure why i stopped though, might have been waiting for confirmation. If you want to take that on, feel free to go for it. i probably won't have time to jump on it soon.
Most helpful comment
I started to work on this.
I'm not super familiar with VueJs but the example that @alexjoverm gave is not using .vue extensions so maybe it would be better if we use something like
--jsxoption for adding vue support ?