From 0db21b1f54e5c923f70abcb174cb0a42c9cd43d9 Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Sat, 2 Jun 2018 23:20:18 +0900 Subject: [PATCH] fix: require babel-preset-vue-app directly (#3406) --- lib/builder/webpack/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/webpack/base.js b/lib/builder/webpack/base.js index 5928636e5d..1b67214be1 100644 --- a/lib/builder/webpack/base.js +++ b/lib/builder/webpack/base.js @@ -32,7 +32,7 @@ export default class WebpackBaseConfig { if (!options.babelrc && !options.presets) { options.presets = [ [ - this.builder.nuxt.resolvePath('babel-preset-vue-app'), + require.resolve('babel-preset-vue-app'), { targets: this.isServer ? { node: 'current' } : { ie: 9, uglify: true } }