[JS IR] save the desired JS output file name in the klib.

This is only usedful for code splitting. The output .js file name
is provided by the build system during the module compilation.
It is desirable to keep the .js output file names same as in old BE,
but calculating those name during the klib -> js phase is tricky.

Thus the desired names are saved in the klib, and used later on.
This commit is contained in:
Anton Bannykh
2020-09-30 13:35:36 +03:00
committed by TeamCityServer
parent 6633a9edc0
commit 7bd9462ffb
7 changed files with 51 additions and 20 deletions
@@ -205,8 +205,8 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
friendDependencies = friendDependencies,
irFactory = PersistentIrFactory(), // TODO IrFactoryImpl?
outputKlibPath = outputFile.path,
nopack = arguments.irProduceKlibDir
)
nopack = arguments.irProduceKlibDir,
jsOutputName = FileUtil.getNameWithoutExtension(outputFile),)
}
if (arguments.irProduceJs) {