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