From afe8a0d74e677272c740929ea85771dfe76e32a1 Mon Sep 17 00:00:00 2001 From: liudh <9798291@qq.com> Date: Mon, 26 Oct 2020 15:37:12 +0800 Subject: [PATCH] fix: fix id differences between different operating systems (#1706) Co-authored-by: liudenghui_bxbank --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 3ca9d1e9e..990c86235 100644 --- a/lib/index.js +++ b/lib/index.js @@ -93,7 +93,7 @@ module.exports = function (source) { const id = hash( isProduction - ? (shortFilePath + '\n' + source) + ? (shortFilePath + '\n' + source.replace(/\r\n/g, '\n')) : shortFilePath )