diff --git a/compiler/webpack.config.js b/compiler/webpack.config.js index d2bdbe2..a491278 100644 --- a/compiler/webpack.config.js +++ b/compiler/webpack.config.js @@ -125,6 +125,11 @@ function initConfig(config) { cacheDirectory: path.resolve(projectConfig.cachePath, '.ets_cache') }; } + if (!projectConfig.aceModuleJsonPath) { + config.resolve.modules.push(path.join(projectPath, '../../../../node_modules/')); + } else if (projectConfig.aceModuleJsonPath) { + config.resolve.modules.push(path.join(projectPath, '../../../node_modules/')); + } } function setProjectConfig(envArgs) {