diff --git a/.gitattributes b/.gitattributes index afbe3b25f10..7e4c4dcb5ed 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ * text=auto - +*.map text eol=lf **/wwwroot/Scripts/* linguist-vendored diff --git a/.scripts/assets-build-tool/min.mjs b/.scripts/assets-build-tool/min.mjs index 297cb3247be..20ccf30e530 100644 --- a/.scripts/assets-build-tool/min.mjs +++ b/.scripts/assets-build-tool/min.mjs @@ -102,7 +102,7 @@ glob(config.source).then((files) => { dest, path.parse(target).name + ".map" ); - fs.outputFile(mappedTarget, (output.map.replace(/(?:\\[rn])+/g, "\\n")) + "\n"); + fs.outputFile(mappedTarget, output.map); console.log( `Mapped (${chalk.gray("from")}, ${chalk.cyan( "to"