From 8d5ea717e88b4f75c6eb3c2df07fb0999bdbccee Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 12 Jul 2018 11:47:08 +0200 Subject: [PATCH] fix: set babelrc: false in babel-loader options Prevents picking up local `.babelrc` file in projects. Babel options can be configured with `chainWebpack` in config by doing `config.module.rule('js').use('babel-loader').tap(options => ({ ...options, plugins: [] }))` --- lib/webpack/createBaseConfig.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/webpack/createBaseConfig.js b/lib/webpack/createBaseConfig.js index cee40f856a..01618157a1 100644 --- a/lib/webpack/createBaseConfig.js +++ b/lib/webpack/createBaseConfig.js @@ -165,6 +165,8 @@ module.exports = function createBaseConfig ({ .use('babel-loader') .loader('babel-loader') .options({ + // do not pick local project babel config + babelrc: false, presets: [ require.resolve('@vue/babel-preset-app') ]