[JS IR] Re-export all JS-exports from main module in multi-module mode

Add an implicit transitive re-export through
main module for all other module's JS-exports.
This commit is contained in:
Alexander Korepanov
2022-01-11 17:27:02 +03:00
committed by Space
parent d52fa8dd9b
commit b40227b66e
8 changed files with 151 additions and 21 deletions
@@ -0,0 +1,18 @@
$kotlin_test_internal$.beginModule();
module.exports = function() {
var demoPackage = require("main").demoPackage
var a1 = demoPackage.a1.ModuleA1Class
var a2 = demoPackage.a2.moduleA2Function
var bb = demoPackage.b.moduleBFunction
return {
"moduleA1": (new a1()).toString(),
"moduleA2": a2().toString(),
"moduleB": bb()
};
};
$kotlin_test_internal$.endModule("lib");