Unverified Commit afe8a0d7 authored by liudh's avatar liudh Committed by GitHub

fix: fix id differences between different operating systems (#1706)

Co-authored-by: 's avatarliudenghui_bxbank <liudenghui@aibank.com>
parent 46709417
...@@ -93,7 +93,7 @@ module.exports = function (source) { ...@@ -93,7 +93,7 @@ module.exports = function (source) {
const id = hash( const id = hash(
isProduction isProduction
? (shortFilePath + '\n' + source) ? (shortFilePath + '\n' + source.replace(/\r\n/g, '\n'))
: shortFilePath : shortFilePath
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment