Add babel options in .vue files

This commit is contained in:
Sébastien Chopin 2016-12-13 17:39:59 +01:00
parent efd6b5cefa
commit 1c4e767850

View File

@ -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: {