9 ms·
Right, but the great thing about a compiled language like Dart is that it can detect at compile-time which modules aren't being used and then exclude those from
by weareconvo 14y ago
Right, but the great thing about a compiled language like Dart is that it can detect at compile-time which modules aren't being used and then exclude those from the js output. Except, it doesn't seem to ever do that.
EDIT: Well, technically, Dart is actually designed to be interpreted (or JIT compiled, or what have you) by the Dart VM, so calling it a "compiled language" was incorrect on my part. However, dart2js is a compiler, so, it should be doing compiler-y shit.
- kyrra 14y agoTree-shaking is the term for removal of uncalled functions. The minifier is still early on so expect it to get better with time.