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' 'use strict'
const { defaults } = require('lodash')
module.exports = function () { module.exports = function () {
let babelOptions = JSON.stringify({ let babelOptions = JSON.stringify(defaults(this.options.build.babel, {
presets: [ presets: [
['es2015', { modules: false }], ['es2015', { modules: false }],
'stage-2' 'stage-2'
] ]
}) }))
let config = { let config = {
postcss: this.options.build.postcss, postcss: this.options.build.postcss,
loaders: { loaders: {