If I have 3 files `one.kt, two.kt, three.kt`. Can ...
# javascript
s
If I have 3 files
one.kt, two.kt, three.kt
. Can I generate 3 js files
one.kt, two.kt and three.kt
which can be used independently?
s
Yes. You would want to create a separate subproject for each file if you are using Gradle.
s
Thanks. Is there any plan for supporting single module to multiple files or is this permanent/limitation?
s
No specific plans, but we are exploring the possibilities
🙏 1
t
@Sourabh Rawat Which mapping do you need? Per file or per class?
s
@turansky per file. For now I have settled on using module. But a better approach is needed.
t
1 file contains many classes/functions?
Are files located in separate packages?
s
no, what I want is 2 scripts
background.js
and
content.js
generated from two files
background.kt
and
content.kt
. If I have them in the same module, then I only get one .js file. Something like that^
t
Kotlin
1.3.70
?
s
Yes
t
I will create Gradle plugin for this task. I will notify you if you are interested.
👀 1
s
Yes that would be awesome thanks
t
Plugin Example Full DCE support - in progress
@Nikky FYI
👍 1
Screenshot 2020-03-20 at 12.54.35.png
s
pretty amazing @turansky
t
Separate dce in progress
DCE support included in
0.5.0