bazelbuild / vscode-bazel

Bazel support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel
Apache License 2.0
232 stars 76 forks source link

Enable incremental TypeScript builds #352

Closed vogelsgesang closed 4 months ago

vogelsgesang commented 4 months ago

Cuts the time of npm run compile from 9 seconds to 3 seconds

cameron-martin commented 4 months ago

I'm mildly opposed to this. Every time I've tried to use incremental mode, I've ended up needing to turn it off because of weird bugs that lead to miscompilation or hard-to-debug behavior. It just doesn't seem to be a reliable feature. Plus it's not supported by rules_js, which we should be migrating to anyway.

If there's known correctness issues then I'd also be in favour of not enabling this for the sake of 6 seconds.

vogelsgesang commented 4 months ago

Interesting... I never saw incremental build issues on any of my other Typescript projects. But given this does not align with the goals around rules_js, I agree we shouldn't merge it

On a related note: Are there reasons why the strict setting is not enabled in the tsconfig.json? I noticed a lot of issues diagnosed in particular by strictNullChecks. Would you welcome a change which enables strict type checking?

jfirebaugh commented 4 months ago

I would love a change to enable strict!