Skip to content

Commit 769f6a6

Browse files
committed
fix: requested changes
1 parent 50bd16e commit 769f6a6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/normalize-options.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,11 @@ export function normalizeOptions(
7878
}
7979

8080
const optionsHash = stableHash(options)
81+
const cacheKey = `${configFile}\0${optionsHash}`
8182
if (configFile) {
82-
const cachedOptions = configFileMapping.get(`${configFile}\0${optionsHash}`)
83+
const cachedOptions = configFileMapping.get(cacheKey)
8384
if (cachedOptions) {
84-
log(
85-
'using cached options for',
86-
configFile,
87-
'with options hash',
88-
optionsHash,
89-
)
85+
log('using cached options for', configFile, 'with options', options)
9086
return cachedOptions
9187
}
9288
}
@@ -108,7 +104,7 @@ export function normalizeOptions(
108104
}
109105

110106
if (configFile) {
111-
configFileMapping.set(`${configFile}\0${optionsHash}`, options)
107+
configFileMapping.set(cacheKey, options)
112108
}
113109

114110
return options

0 commit comments

Comments
 (0)