mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
Add babel options in .vue files
This commit is contained in:
parent
efd6b5cefa
commit
1c4e767850
@ -1,12 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
const { defaults } = require('lodash')
|
||||
|
||||
module.exports = function () {
|
||||
let babelOptions = JSON.stringify({
|
||||
let babelOptions = JSON.stringify(defaults(this.options.build.babel, {
|
||||
presets: [
|
||||
['es2015', { modules: false }],
|
||||
'stage-2'
|
||||
]
|
||||
})
|
||||
}))
|
||||
let config = {
|
||||
postcss: this.options.build.postcss,
|
||||
loaders: {
|
||||
|
Loading…
Reference in New Issue
Block a user