Did anybody tried to use closure to remove unused ...
# javascript
g
Did anybody tried to use closure to remove unused code (including kotlin.js)?
k
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
@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
I don't know of any such tool
g
And is there any plans at JB to create such tool?
k
Yes, there are such plans
g
😅