Incremental build with changes to tsconfig's target does not regenerate js files #31118
Labels
Bug
A bug in TypeScript
Domain: --incremental
The issue relates to incremental compilation
Fixed
A PR has been merged for this issue
TypeScript Version: 3.4.5, 3.5.0-dev.20190425
Search Terms: incremental, build, target, tsc, tsconfig
Code
bar.ts
tsconfig.json
Expected behavior:
Once you build, then change the tsconfig
target
field to, say,commonjs
, TSC should regenerate all of the output JS files.Actual behavior:
TSC runs, but does not regenerate the JS files
It would seem that some tsconfig values should be part of the
tsconfig.tsbuildinfo
hash/checksum, but are not. Not sure if this is meant to be by design, but could be misleading.The text was updated successfully, but these errors were encountered: