[Vuejs]-Publishing .vue to npm for use with browserify

0👍

If you bundle your component as a umd module, then you can import it into browserify or webpack. Use rollup and this plugin: http://vuejs.github.io/rollup-plugin-vue/

I ran into this issue with my vue-autosuggest library, where browserify users were experiencing issues importing my module.

Check out this example rollup config for inspiration:
https://github.com/Educents/vue-autosuggest/blob/master/build/rollup.umd.config.js

Hope this helps!

Leave a comment