Skip to content

Commit

Permalink
fix(compiler): pass filename to sha function instead of file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Anh Pham (NL-DEV) committed Nov 7, 2019
1 parent 51ab4c2 commit ac1ac97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

/**
Expand Down

0 comments on commit ac1ac97

Please sign in to comment.