mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Use async/await in vue files
This commit is contained in:
parent
05a66e0cba
commit
0a3577b4c0
@ -4,6 +4,10 @@ const { defaults } = require('lodash')
|
||||
|
||||
module.exports = function () {
|
||||
let babelOptions = JSON.stringify(defaults(this.options.build.babel, {
|
||||
plugins: [
|
||||
'transform-async-to-generator',
|
||||
'transform-runtime'
|
||||
],
|
||||
presets: [
|
||||
['es2015', { modules: false }],
|
||||
'stage-2'
|
||||
|
Loading…
Reference in New Issue
Block a user