Skip to content

Commit

Permalink
use babel stage-0
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Aug 12, 2017
1 parent 7fba1cf commit a0138ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ export function js({ code, transformer }) {
return code
} else if (transformer === 'babel') {
return window.Babel.transform(code, {
presets: ['es2015', 'stage-2', transformers.get('FlowPreset')],
presets: ['es2015', 'stage-0', transformers.get('FlowPreset')],
plugins: ['transform-react-jsx']
}).code
} else if (transformer === 'jsx') {
return window.Babel.transform(code, {
presets: ['stage-2', transformers.get('FlowPreset')],
presets: ['stage-0', transformers.get('FlowPreset')],
plugins: ['transform-react-jsx']
}).code
} else if (transformer === 'vue-jsx') {
return window.Babel
.transform(code, {
presets: [
'stage-2',
'stage-0',
transformers.get('VuePreset'),
transformers.get('FlowPreset')
]
Expand Down

0 comments on commit a0138ea

Please sign in to comment.