We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fab826 commit 5246bdfCopy full SHA for 5246bdf
packages/compiler-sfc/src/script/resolveType.ts
@@ -1031,7 +1031,9 @@ function resolveWithTS(
1031
} else {
1032
const [major, minor] = ts.versionMajorMinor.split('.').map(Number)
1033
function getPattern(base: string, p: string): string {
1034
- return p.startsWith('${configDir}') && major >= 5 && minor >= 5
+ const supportsConfigDir =
1035
+ major > 5 || (major === 5 && minor >= 5)
1036
+ return p.startsWith('${configDir}') && supportsConfigDir
1037
? // ts 5.5+ supports ${configDir} in paths
1038
normalizePath(p.replace('${configDir}', dirname(configPath!)))
1039
: joinPaths(base, p)
0 commit comments