From 61a424528c4b0f3da06d776fc2dc71f076fbe931 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 1 Aug 2017 01:57:22 +0430 Subject: [PATCH] help to work with linked modules and npx #1076 @Jinjiang --- lib/builder/webpack/base.config.js | 2 +- lib/builder/webpack/vue-loader.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/builder/webpack/base.config.js b/lib/builder/webpack/base.config.js index b0db0ddade..bb720aced4 100644 --- a/lib/builder/webpack/base.config.js +++ b/lib/builder/webpack/base.config.js @@ -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 }) diff --git a/lib/builder/webpack/vue-loader.config.js b/lib/builder/webpack/vue-loader.config.js index 0b08bc108e..659eded04b 100644 --- a/lib/builder/webpack/vue-loader.config.js +++ b/lib/builder/webpack/vue-loader.config.js @@ -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 }))