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 38521b8
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(
`exportedModulesMap = mapDefined(arrayFrom(state.exportedModulesMap.keys()).sort(compareStringsCaseSensitive), (key) => {`,
`exportedModulesMap = mapDefined(arrayFrom(state.exportedModulesMap.keys()).filter(file => !file.toLowerCase().includes('__vls_')).sort(compareStringsCaseSensitive), (key) => {`
);
}
if (semver.gte(tsPkg.version, '5.0.4')) {
tryReplace(
Expand Down

0 comments on commit 38521b8

Please sign in to comment.