| ▲ | wildpeaks 4 hours ago | |
Because it's a waste of bandwidth if they're not enforced at runtime, the same reason why minification exists. | ||
| ▲ | ZiiS 4 hours ago | parent [-] | |
Both not minifying and including unenforced type hints consumes a little bandwidth though this can be largely offset by compression. This is an engineering trade off against the complexity of getting source maps working reliably for debugging and alerting. If I am shipping a video player or an internal company dashboard how much of my time is that bandwidth worth? | ||