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
gildor
09/10/2019, 2:40 PM
To have 2 output files you need 2 Kotlin JS modules, it's existing limitation of compiler itself
m
mp
09/10/2019, 2:55 PM
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
Sam Garfinkel
09/10/2019, 2:57 PM
@mp Create a third module,
wrappers
. (
common
has a different convention, implying shared Kotlin code--oops)
m
mp
09/10/2019, 2:59 PM
yes the question actually was regarding the type of
wrappers
module(how to compile/deliver/share)
tnx
g
gildor
09/10/2019, 3:15 PM
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