vuejs / vue-template-es2015-compiler

Support a subset of handy ES2015 features in Vue 2.0 templates.
61 stars 23 forks source link

bug with options.transforms.spreadRest = false #15

Open LongTengDao opened 5 years ago

LongTengDao commented 5 years ago

sample:

require('vue-template-es2015-compiler')(
    `with(this){ var TEST = function (...rest) {}; }`,
    { transforms: { spreadRest: false } }
);

output:

var _vm=this;
var _h=_vm.$createElement;
var _c=_vm._self._c||_h;
var TEST = function (..._vm.rest) {};