You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
Keyword const should be transpiled to var because I've applied .browserslistrc with ie 9 for Babel 7.
It seems to be that code from vue-component-compiler is not transpiled to ES5 partially.
One possible work around is switching form Babel to Bublé.
No plugins or staging/draft spec features, but it handles the ES2015+ transpilation to ES5 well enough.
We have to add .vue extension to babel handled files.
znck
changed the title
Generated code is not transpiled by rollup-plugin-babel to ES5
How to transpile output of rollup-plugin-vue to ES5 using rollup-plugin-babel?
Oct 28, 2018
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: