Example for `rollup-plugin-vue`
Create a module for vue component. |
{ | |
"name": "test-rollup-plugin-vue", | |
"version": "1.0.0", | |
"devDependencies": { | |
"rollup-plugin-buble": "^0.14.0", | |
"rollup-plugin-commonjs": "^5.0.4", | |
"rollup-plugin-node-resolve": "^2.0.0", | |
"rollup-plugin-vue": "^2.2.3" | |
} | |
} |
import vue from 'rollup-plugin-vue'; | |
import babel from 'rollup-plugin-buble'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
export default { | |
moduleName: 'hello', | |
entry: 'index.js', | |
dest: 'dist/bundle.js', | |
format: 'iife', | |
plugins: [ | |
resolve({ | |
jsnext: true, | |
main: true, | |
browser: true, | |
}), | |
commonjs(), | |
vue({compileTemplate: true}), | |
babel(), | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Dumping terminal history