microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.32k stars 122 forks source link

allow tree-shaking of classes #332

Closed mmoskal closed 1 year ago

mmoskal commented 1 year ago

I'm disabling tree-shaking of class-methods by default to reduce surprises (I just hit it when doing servers).

We should add an attribute to enable it on class-by-class basis.