From 51bb014432406055b3c1cd0086ac81b52f33b0b9 Mon Sep 17 00:00:00 2001 From: liudenghui_bxbank Date: Fri, 31 Jul 2020 12:26:31 +0800 Subject: [PATCH] fix: Fix id differences between different operating systems --- 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 )