Title
g

gaetan

04/14/2017, 9:07 AM
Did anybody tried to use closure to remove unused code (including kotlin.js)?
k

konsoletyper

04/14/2017, 9:09 AM
You mean google closure compiler? It does not support ES5-style properties (Object.defineProperty) which is widely used in kotlin.js, hence it's unusable with Kotlin.
g

gaetan

04/14/2017, 9:17 AM
@konsoletyper Do you know other tools that could do the job? I currently use require.js to define my whole application and would like to have for production a single smallest js file.
k

konsoletyper

04/14/2017, 9:17 AM
I don't know of any such tool
g

gaetan

04/14/2017, 9:37 AM
And is there any plans at JB to create such tool?
k

konsoletyper

04/14/2017, 9:39 AM
Yes, there are such plans
g

gaetan

04/14/2017, 9:45 AM
šŸ˜