mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-27 13:52:38 +00:00
parent
b460e4e2f2
commit
61a424528c
@ -78,7 +78,7 @@ export default function webpackBaseConfig ({ isClient, isServer }) {
|
|||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
query: defaults(this.options.build.babel, {
|
query: defaults(this.options.build.babel, {
|
||||||
presets: ['vue-app'],
|
presets: [require.resolve('babel-preset-vue-app')],
|
||||||
babelrc: false,
|
babelrc: false,
|
||||||
cacheDirectory: !!this.options.dev
|
cacheDirectory: !!this.options.dev
|
||||||
})
|
})
|
||||||
|
@ -3,7 +3,7 @@ import { extractStyles, styleLoader } from './helpers'
|
|||||||
|
|
||||||
export default function ({ isClient }) {
|
export default function ({ isClient }) {
|
||||||
let babelOptions = JSON.stringify(defaults(this.options.build.babel, {
|
let babelOptions = JSON.stringify(defaults(this.options.build.babel, {
|
||||||
presets: ['vue-app'],
|
presets: [require.resolve('babel-preset-vue-app')],
|
||||||
babelrc: false,
|
babelrc: false,
|
||||||
cacheDirectory: !!this.options.dev
|
cacheDirectory: !!this.options.dev
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user