I just opened an issue to ask for an improvement o...
# javascript
d
I just opened an issue to ask for an improvement of the JS filesize when Ktor is used as a simple Http Client: https://youtrack.jetbrains.com/issue/KT-42189 Please Upvote.
👍 4
a
Can't open the link
r
I've received an e-mail with this: "On 25 Sep 2020 14:21, Ivan Kubyshkin moved an issue to a project in which you don't have permission to read issues."
I've managed to vote earlier ;-)
s
That looks like a mistake, then. I’ve pinged some folks who should be able to turn it public again. 🙂
r
it can stay hidden if it will be fixed faster 😉
🙃 4
s
Issue is public again – you got my vote! 😄
a
The issue is actually good. I like ktor API. The size is not that important for me since my other dependencies (plotly, threejs) are huge, but still it bothers me that ktor-client increases the size that much.
t
@altavir I think I can help you with bundle size (via plugin) if
plotly
and/or
threejs
are ES6 libraries.
a
@turansky Thanks. Plotly does not support ES6, Threejs recently started to support this option, but I never tried it. What plugin are you talking about?
t
By default
threejs
will be included fully in your bundle, because ES modules still not supported by Kotlin/JS. Solution - filter
threejs
imports via plugin. You can copy my plugin and adopt it for
threejs
. Also you can find example project.
a
Thanks, it is not critical for me at the moment, but I will try it later.
t
@altavir Also first webpack blocker described here https://twitter.com/vnturansky/status/1315822595493769217?s=20