[JS IR] IC: support per-module in K2JsIrCompiler

This commit is contained in:
Anton Bannykh
2021-12-17 16:35:58 +03:00
parent ca60caa7e9
commit 4c33cb8016
5 changed files with 22 additions and 23 deletions
@@ -287,7 +287,14 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
val translationMode = TranslationMode.fromFlags(false, arguments.irPerModule)
val compiledModule = generateJsFromAst(moduleName, moduleKind, SourceMapsInfo.from(configurationJs), setOf(translationMode), caches)
val compiledModule = generateJsFromAst(
moduleName,
moduleKind,
SourceMapsInfo.from(configurationJs),
setOf(translationMode),
caches,
relativeRequirePath = true
)
val outputs = compiledModule.outputs.values.single()