Skip to content

Commit

Permalink
fix(vue-tsc): prevent rebuild in incremental mode throwing error
Browse files Browse the repository at this point in the history
Fix rebuilding in incremental mode with tsbuildinfo file causing error.
  • Loading branch information
blake-newman committed Sep 12, 2023
1 parent 48d3d15 commit f4c7a20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vue-tsc/bin/vue-tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ fs.readFileSync = (...args) => {
.map(file => file.replace(/\.vue\.(j|t)sx?$/i, '.vue'))
) {`
);
tryReplace(
`return [toFileId(key), toFileIdListId(state.exportedModulesMap.getValues(key))];`,
`return [toFileId(key), toFileIdListId(new Set(arrayFrom(state.exportedModulesMap.getValues(key)).filter(file => file !== void 0)))];`
);
}
if (semver.gte(tsPkg.version, '5.0.4')) {
tryReplace(
Expand Down

0 comments on commit f4c7a20

Please sign in to comment.