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
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -89,28 +89,28 @@ In your HTML:
89
89
90
90
`vue-loader` automatically applies Babel transforms to the JavaScript inside `*.vue` components. Write ES2015 today!
91
91
92
+
**Compatibility Note:** vue-loader 7.0+ uses Babel 6. If you need to use Babel 5 for transpiling your code, use vue-loader 6.x.
93
+
92
94
The default Babel options used for Vue.js components are:
93
95
94
96
```js
95
97
{
96
-
// use babel-runtime library for common helpers
97
-
optional: ['runtime'],
98
-
// use loose mode for faster builds
99
-
loose:'all',
100
-
// disable non-standard stuff (e.g. JSX)
101
-
nonStandard:false
98
+
presets: ['es2015'],
99
+
plugins: ['transform-runtime']
102
100
}
103
101
```
104
102
105
-
If you wish to mofidy this, you can add a `babel` field in your webpack config, which will be merged with the default options. For example:
103
+
If you wish to override this, you can add a `babel` field in your webpack config, which will be applied to all JavaScript processed by `babel-loader`. For example:
0 commit comments