Skip to content

Commit afe8a0d

Browse files
denghui1010liudenghui_bxbank
and
liudenghui_bxbank
authored
fix: fix id differences between different operating systems (#1706)
Co-authored-by: liudenghui_bxbank <liudenghui@aibank.com>
1 parent 4670941 commit afe8a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = function (source) {
9393

9494
const id = hash(
9595
isProduction
96-
? (shortFilePath + '\n' + source)
96+
? (shortFilePath + '\n' + source.replace(/\r\n/g, '\n'))
9797
: shortFilePath
9898
)
9999

0 commit comments

Comments
 (0)