It seems that using `eval` on a project still caus...
# javascript
m
It seems that using
eval
on a project still causes the project's bundle size to shoot up for some unknown reason I did talk about that bug 1+ year ago here on this channel, but that time I could fix the bug by creating proper typings, but sadly this time I really needed to use
eval
(executing scripts sent in HTML fragments by the server) https://kotlinlang.slack.com/archives/C0B8L3U69/p1715660256035359 So here's a workaround: Instead of using
eval
directly, use
window.asDynamic().eval(element.innerHTML)
Bundle sizes: • With
eval(element.innerHTML)
(from
kotlin.js
): 1.788KB • With `window.asDynamic().eval(element.innerHTML)`: 1.030KB