Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit 5905a60

Browse files
committed
update readme for babel 6
1 parent c429746 commit 5905a60

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -106,31 +106,27 @@ browserify('./entry.js')
106106

107107
## ES2015 by Default
108108

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!
110110

111-
The default Babel options used for Vue.js components are:
111+
The default Babel (6) options used for Vue.js components are:
112112

113113
``` js
114114
{
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']
121117
}
122118
```
123119

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`:
125121

126122
``` js
127123
// vue.config.js
128124
module.exports = {
129125
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']
134130
}
135131
}
136132
```

0 commit comments

Comments
 (0)