mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
Add async/await in core
This commit is contained in:
parent
eb21c4d67f
commit
8adb69468b
@ -64,6 +64,10 @@ module.exports = function () {
|
|||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
query: defaults(this.options.build.babel, {
|
query: defaults(this.options.build.babel, {
|
||||||
|
plugins: [
|
||||||
|
'transform-async-to-generator',
|
||||||
|
'transform-runtime'
|
||||||
|
],
|
||||||
presets: [
|
presets: [
|
||||||
['es2015', { modules: false }],
|
['es2015', { modules: false }],
|
||||||
'stage-2'
|
'stage-2'
|
||||||
|
Loading…
Reference in New Issue
Block a user