rollup-plugin-vue2 icon indicating copy to clipboard operation
rollup-plugin-vue2 copied to clipboard

Reuse vue-template-es2015-compiler to transpile component

Open thgh opened this issue 8 years ago • 2 comments

vue-template-es2015-compiler is required in #7 so why not use it to transpile the whole component instead of only the templates?

  1. Which option seems the most obvious? transpile: true es6: true buble: true
  2. Default on?

thgh avatar Nov 30 '16 22:11 thgh

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

Jetsly avatar Dec 01 '16 01:12 Jetsly

OK, buble compilation will be off by default.

The option will be buble: true or buble: { transforms: ... }

thgh avatar Dec 11 '16 13:12 thgh