Join Slack
Communities
Powered by
Does the K/JS compiler perform optimizations on `U...
# javascript
e
Edoardo Luppi
01/16/2024, 11:40 AM
Does the K/JS compiler perform optimizations on
UNUSED_VARIABLE
? Does it avoid generating code for such tokens? Edit: apparently, it does not optimize
a
Artem Kobzar
01/16/2024, 12:38 PM
As far as I remember - no. Such optimizations we delegate to terser, but, as I remember, you don't use webpack in your build, do you?
e
Edoardo Luppi
01/16/2024, 1:09 PM
@Artem Kobzar
exactly, because the Node.js target doesn't pass by any terser or bundler.
Edoardo Luppi
01/16/2024, 1:09 PM
I'd have to set it up on my own, but I risk on breaking the TS interop.
Open in Slack
Previous
Next