From 5b4df1427885e46666d780ba64e759c930c534db Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 7 Jun 2018 10:28:32 -0400 Subject: [PATCH] fix: resolve.symlinks to false so that node_modules exclusion works properly on linked modules --- packages/@vue/cli-service/lib/config/base.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/@vue/cli-service/lib/config/base.js b/packages/@vue/cli-service/lib/config/base.js index e3ab00ad50..3837c2454f 100644 --- a/packages/@vue/cli-service/lib/config/base.js +++ b/packages/@vue/cli-service/lib/config/base.js @@ -16,7 +16,7 @@ module.exports = (api, options) => { .publicPath(options.baseUrl) webpackConfig.resolve - .set('symlinks', true) + .set('symlinks', false) .extensions .merge(['.js', '.jsx', '.vue', '.json']) .end() @@ -35,7 +35,6 @@ module.exports = (api, options) => { ) webpackConfig.resolveLoader - .set('symlinks', true) .modules .add('node_modules') .add(api.resolve('node_modules'))