Skip to content

Commit ac1ac97

Browse files
author
Anh Pham (NL-DEV)
committed
fix(compiler): pass filename to sha function instead of file extension
1 parent 51ab4c2 commit ac1ac97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ function updateSourceMap(sourceMapText: string, fileName: string, _sourceRoot: s
324324
* Get the file name for the cache entry.
325325
*/
326326
function getCacheName(sourceCode: string, fileName: string) {
327-
return sha1(extname(fileName), '\x00', sourceCode)
327+
return sha1(fileName, '\x00', sourceCode)
328328
}
329329

330330
/**

0 commit comments

Comments
 (0)