-
Notifications
You must be signed in to change notification settings - Fork 74
Generated code is not transpiled by rollup-plugin-babel to ES5 with vue plugin #260
Comments
From what I remember babel ignores |
Are the files Not related to your question, but FYI |
Babel 7.1.2 force me to add api.cache expression |
Fair. All you need is |
@cloudever try to add // plugins
...
babel({
runtimeHelpers: true,
sourceMap: true,
extensions: ['.js', '.jsx', '.es6', '.es', '.mjs', '.vue'],
}),
... I had the same issue after upgrade to the latest versions of rollup-plugin-vue, rollup-plugin-babel & etc. |
@ghettovoice Did the trick thank's |
Expected behavior
Keyword
const
should be transpiled tovar
because I've applied.browserslistrc
withie 9
for Babel 7.It seems to be that code from
vue-component-compiler
is not transpiled to ES5 partially.https://github.com/vuejs/vue-component-compiler/blob/afa1cd440123e2e0c195908c1e15935273ac64a9/src/assembler.ts#L304-L307
Actual behavior
I get following code that contains
const
notvar
!Steps to reproduce the behavior
Create babel.config.js
Apply plugins
And .browserslistrc
The text was updated successfully, but these errors were encountered: