From 276e80ddae3dcbdfc116ead237576774838f1cee Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Thu, 25 Jul 2019 13:55:43 +0100 Subject: [PATCH] fix($core): prioritise vuepress dependencies over cwd node_modules (#1708) --- packages/@vuepress/core/lib/node/webpack/createBaseConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js index 8173373340..da457f33f4 100644 --- a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js +++ b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js @@ -310,5 +310,5 @@ function getLastCommitHash () { } function getModulePaths () { - return [path.resolve(process.cwd(), 'node_modules')].concat(module.paths) + return module.paths.concat([path.resolve(process.cwd(), 'node_modules')]) }