Microbundle: Add Vue.js support

Created on 26 Feb 2018  路  6Comments  路  Source: developit/microbundle

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?

increased scope wontfix

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 --jsx option for adding vue support ?

All 6 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wcastand picture wcastand  路  16Comments

FezVrasta picture FezVrasta  路  11Comments

phryneas picture phryneas  路  12Comments

JoviDeCroock picture JoviDeCroock  路  17Comments

developit picture developit  路  14Comments