Skip to content

Commit

Permalink
fix: fix id differences between different operating systems (#1706)
Browse files Browse the repository at this point in the history
Co-authored-by: liudenghui_bxbank <liudenghui@aibank.com>
  • Loading branch information
denghui1010 and liudenghui_bxbank committed Oct 26, 2020
1 parent 4670941 commit afe8a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -93,7 +93,7 @@ module.exports = function (source) {

const id = hash(
isProduction
? (shortFilePath + '\n' + source)
? (shortFilePath + '\n' + source.replace(/\r\n/g, '\n'))
: shortFilePath
)

Expand Down

0 comments on commit afe8a0d

Please sign in to comment.