add: node_modules find path

Signed-off-by: laibo102 <laibo2@huawei.com>
Change-Id: I0df73aead7ff54420a904dbd56b769a779c4bd33
This commit is contained in:
laibo102
2022-04-08 15:08:06 +08:00
parent 20c3ee93bf
commit 8eca986a0a
+2
View File
@@ -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'));
}
}