hi there any chance to get 2 output files from ko...
# javascript
m
hi there any chance to get 2 output files from kotlinjs(new plugin 1.3.50) project (working on chrome extension and need 2 files with main() functions)
g
To have 2 output files you need 2 Kotlin JS modules, it's existing limitation of compiler itself
m
ok. tnx and if in process of creation these 2 files I’ve created some wrappers (eg. browser.runtime browser.tabs) can you advice best way to share it for both modules?
s
@mp Create a third module,
wrappers
. (
common
has a different convention, implying shared Kotlin code--oops)
m
yes the question actually was regarding the type of
wrappers
module(how to compile/deliver/share) tnx
g
It will be just one more Kotlin Js module, compile it as usually. Deliver/share depends on use case but it's not so different from publishing one module