diff --git a/ets2panda/driver/build_system/src/build/base_mode.ts b/ets2panda/driver/build_system/src/build/base_mode.ts index 578de8289a33d633ada9a85afce0f426b3942fcf..f31a72d73391d281b7e9a5240660cd94f85cccfd 100644 --- a/ets2panda/driver/build_system/src/build/base_mode.ts +++ b/ets2panda/driver/build_system/src/build/base_mode.ts @@ -516,11 +516,16 @@ export abstract class BaseMode { moduleInfo.staticDepModuleInfos = staticDepModules; [...dynamicDepModules.keys(), ...staticDepModules.keys()].forEach(depName => { - moduleInfo.dependenciesSet.add(depName); + if(this.moduleInfos.get(depName)?.language !== '1.1') { + moduleInfo.dependenciesSet.add(depName); + } }); moduleInfo.dependenciesSet.delete(moduleInfo.packageName); moduleInfo.dependencies?.forEach(moduleName => { - this.moduleInfos.get(moduleName)?.dependentSet.add(moduleInfo.packageName); + let depModuleInfo = this.moduleInfos.get(moduleName); + if(depModuleInfo !== undefined && depModuleInfo.language !== '1.1') { + depModuleInfo.dependentSet.add(moduleInfo.packageName); + } }); }); } @@ -565,7 +570,7 @@ export abstract class BaseMode { dependencies: module.dependencies, byteCodeHar: module.byteCodeHar, abcPath: module.abcPath, - dependenciesSet: new Set(module?.dependencies), + dependenciesSet: new Set(), dependentSet: new Set(), }; this.moduleInfos.set(module.packageName, moduleInfo);