From 113031893d0f9becd39fffd6008bd8ada0d97274 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 18 Apr 2018 15:22:28 -0400 Subject: [PATCH] fix: fix yarn global install (fix #102) --- lib/webpack/createBaseConfig.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/webpack/createBaseConfig.js b/lib/webpack/createBaseConfig.js index efd9712c19..b791342822 100644 --- a/lib/webpack/createBaseConfig.js +++ b/lib/webpack/createBaseConfig.js @@ -46,6 +46,7 @@ module.exports = function createBaseConfig ({ .modules // prioritize our own .add(path.resolve(__dirname, '../../node_modules')) + .add(path.resolve(__dirname, '../../../')) .add('node_modules') config.resolveLoader @@ -53,6 +54,7 @@ module.exports = function createBaseConfig ({ .modules // prioritize our own .add(path.resolve(__dirname, '../../node_modules')) + .add(path.resolve(__dirname, '../../../')) .add('node_modules') config.module