From 8eca986a0ab744a77a9b5b346126a4e767d67661 Mon Sep 17 00:00:00 2001 From: laibo102 Date: Fri, 8 Apr 2022 15:08:06 +0800 Subject: [PATCH] add: node_modules find path Signed-off-by: laibo102 Change-Id: I0df73aead7ff54420a904dbd56b769a779c4bd33 --- compiler/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/webpack.config.js b/compiler/webpack.config.js index 96eb6e0..00565c0 100644 --- a/compiler/webpack.config.js +++ b/compiler/webpack.config.js @@ -126,8 +126,10 @@ function initConfig(config) { } if (!projectConfig.aceModuleJsonPath) { config.resolve.modules.push(path.resolve(projectPath, '../../../../node_modules')); + config.resolve.modules.push(path.resolve(projectPath, '../../../../../node_modules')); } else { config.resolve.modules.push(path.resolve(projectPath, '../../../node_modules')); + config.resolve.modules.push(path.resolve(projectPath, '../../../../node_modules')); } }