rollup-plugin-vue2
rollup-plugin-vue2 copied to clipboard
Reuse vue-template-es2015-compiler to transpile component
vue-template-es2015-compiler
is required in #7 so why not use it to transpile the whole component instead of only the templates?
- Which option seems the most obvious?
transpile: true
es6: true
buble: true
- Default on?
when some es6 in component,buble is not supported
function* helloWorldGenerator() {
yield 'hello';
yield 'world';
return 'ending';
}
but,you can use babel for supported,so only transpile templates
OK, buble compilation will be off by default.
The option will be buble: true
or buble: { transforms: ... }