From ac1ac972dbba985786e3df34cbab9f14286369bb Mon Sep 17 00:00:00 2001 From: "Anh Pham (NL-DEV)" Date: Thu, 7 Nov 2019 13:46:55 +0100 Subject: [PATCH] fix(compiler): pass filename to sha function instead of file extension --- src/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } /**