This repository was archived by the owner on Dec 26, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -106,31 +106,27 @@ browserify('./entry.js')
106
106
107
107
## ES2015 by Default
108
108
109
- Vueify 4.0+ automatically transforms the JavaScript in your ` *.vue ` components using Babel. Write ES2015 today!
109
+ Vueify automatically transforms the JavaScript in your ` *.vue ` components using Babel. Write ES2015 today!
110
110
111
- The default Babel options used for Vue.js components are:
111
+ The default Babel (6) options used for Vue.js components are:
112
112
113
113
``` js
114
114
{
115
- // use babel-runtime library for common helpers
116
- optional: [' runtime' ],
117
- // use loose mode for faster builds
118
- loose: ' all' ,
119
- // disable non-standard stuff (e.g. JSX)
120
- nonStandard: false
115
+ presets: [' es2015' ],
116
+ plugins: [' transform-runtime' ]
121
117
}
122
118
```
123
119
124
- If you wish to mofidy this, you can add a ` vue.config.js ` and configure the option for ` babel ` :
120
+ If you wish to override this, you can add a ` vue.config.js ` and configure the option for ` babel ` :
125
121
126
122
``` js
127
123
// vue.config.js
128
124
module .exports = {
129
125
babel: {
130
- stage : 0 , // use all the fancy stage 0 features!
131
- optional : [ ' runtime ' ],
132
- loose : ' all ' ,
133
- nonStandard : false
126
+ // enable stage 0 transforms.
127
+ // make sure to install babel-presets-stage-0
128
+ presets : [ ' es2015 ' , ' stage-0 ' ] ,
129
+ plugins : [ ' transform-runtime ' ]
134
130
}
135
131
}
136
132
```
You can’t perform that action at this time.
0 commit comments