[JS IR] add a flag which prepends a custom prefix to the per-module .js files

This commit is contained in:
Anton Bannykh
2020-09-30 16:58:32 +03:00
committed by TeamCityServer
parent 7bd9462ffb
commit 6e40c814c8
4 changed files with 15 additions and 3 deletions
@@ -274,6 +274,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
relativeRequirePath = true,
propertyLazyInitialization = arguments.irPropertyLazyInitialization,
legacyPropertyAccess = arguments.irLegacyPropertyAccess,
irPerModulePrefix = arguments.irPerModulePrefix
)
val jsCode = if (arguments.irDce && !arguments.irDceDriven) compiledModule.dceJsCode!! else compiledModule.jsCode!!