As vue-loader is for webpack, so is this for rollup. As we know, webpack concats stuff and makes it runnable in the browser. It's difficult to share .vue components. Now roll your Vue components.
With rollup you can break your application into reusable modules.
import commonjs from '@rollup/plugin-commonjs'
import VuePlugin from 'rollup-plugin-vue2'
export default {
entry: 'main.js',
plugins: [
commonjs(),
VuePlugin(/* VuePluginOptions */)
]
}
See available options for VuePluginOptions
(please review the options for Vue 2 if possible).
If you discover any security related issues, please email yfwz100@yeah.net instead of using the issue tracker.
The MIT License (MIT).