diff --git a/src/compiler.ts b/src/compiler.ts index d327155199..a11acf3f6a 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -324,7 +324,7 @@ function updateSourceMap(sourceMapText: string, fileName: string, _sourceRoot: s * Get the file name for the cache entry. */ function getCacheName(sourceCode: string, fileName: string) { - return sha1(extname(fileName), '\x00', sourceCode) + return sha1(fileName, '\x00', sourceCode) } /**