Ilya Kalibrov [JB]
10/19/2021, 8:55 AM.js
file is generated and to turn it on you need to pass it by adding the line freeCompilerArgs += listOf("-Xir-per-module")
inside kotlinOptions block:
• How do you use generated .js
files for each module in Legacy mode? Please, describe your case in details.
• If you used Xir-per-module
in IR mode has it managed to satisfy your needs? If not describe the problem that you faced
◦ Does single .js
files in IR mode block you from migrating?
◦ Did you manage to overcome the problem? Describe how
◦ Do you publish the resulting JS code to NPM?
▪︎ Do you publish more than one package?
▪︎ If yes, do you expect to use these packages to be used simultaneously in the same app?
• If you need to generate d.ts
per module as well, please, describe why do you need this possibility and describe your case where you find it useful
Feel free to answer in the thread 🧵 or (better) follow the KT-44319 and leave your answer youtrack in the comments.