diff --git a/.scripts/assets-build-tool/min.mjs b/.scripts/assets-build-tool/min.mjs index 65aef04dfd5..d5e467212b8 100644 --- a/.scripts/assets-build-tool/min.mjs +++ b/.scripts/assets-build-tool/min.mjs @@ -226,7 +226,7 @@ glob(config.source).then((files) => { dest, path.parse(target).name + ".map" ); - await fs.outputFile(mappedTarget, (output.map.replace(/(?:\\[rn])+/g, "\\n")) + "\n"); + await fs.outputFile(mappedTarget, (map.replace(/(?:\\[rn])+/g, "\\n")) + "\n"); console.log( `Mapped (${chalk.gray("from")}, ${chalk.cyan( "to"