File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/compiler-sfc/src/script Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1030,12 +1030,11 @@ function resolveWithTS(
1030
1030
matchedConfig = configs [ 0 ]
1031
1031
} else {
1032
1032
const [ major , minor ] = ts . versionMajorMinor . split ( '.' ) . map ( Number )
1033
- function getPattern ( base : string , p : string ) : string {
1034
- const supportsConfigDir =
1035
- major > 5 || ( major === 5 && minor >= 5 )
1033
+ const getPattern = ( base : string , p : string ) => {
1034
+ // ts 5.5+ supports ${configDir} in paths
1035
+ const supportsConfigDir = major > 5 || ( major === 5 && minor >= 5 )
1036
1036
return p . startsWith ( '${configDir}' ) && supportsConfigDir
1037
- ? // ts 5.5+ supports ${configDir} in paths
1038
- normalizePath ( p . replace ( '${configDir}' , dirname ( configPath ! ) ) )
1037
+ ? normalizePath ( p . replace ( '${configDir}' , dirname ( configPath ! ) ) )
1039
1038
: joinPaths ( base , p )
1040
1039
}
1041
1040
// resolve which config matches the current file
You can’t perform that action at this time.
0 commit comments