File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,21 @@ fs.readFileSync = (...args) => {
2121
2222 // patches logic for checking root file extension in build program for incremental builds
2323 if ( semver . gt ( tsPkg . version , '5.0.0' ) ) {
24- tryReplace ( `for (const existingRoot of buildInfoVersionMap.roots) {` , `for (const existingRoot of buildInfoVersionMap.roots
25- .filter(file => !file.toLowerCase().includes('__vls_'))
26- .map(file => file.replace(/\.vue\.(j|t)sx?$/i, '.vue'))
27- ) {` ) ;
24+ tryReplace (
25+ `for (const existingRoot of buildInfoVersionMap.roots) {` ,
26+ `for (const existingRoot of buildInfoVersionMap.roots
27+ .filter(file => !file.toLowerCase().includes('__vls_'))
28+ .map(file => file.replace(/\.vue\.(j|t)sx?$/i, '.vue'))
29+ ) {`
30+ ) ;
31+ }
32+ if ( semver . gte ( tsPkg . version , '5.0.4' ) ) {
33+ tryReplace (
34+ `return createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host);` ,
35+ s => `buildInfo.program.fileNames = buildInfo.program.fileNames
36+ .filter(file => !file.toLowerCase().includes('__vls_'))
37+ .map(file => file.replace(/\.vue\.(j|t)sx?$/i, '.vue'));\n` + s
38+ ) ;
2839 }
2940
3041 return tsc ;
You can’t perform that action at this time.
0 commit comments