@blinkk/root 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -753,7 +753,7 @@ async function build(rootProjectDir, options) {
753
753
  const outFilePath2 = urlPath.slice(1);
754
754
  const outPath2 = path3.join(buildDir, outFilePath2);
755
755
  await makeDir(path3.dirname(outPath2));
756
- await writeFile(outPath2, body);
756
+ await writeFile(outPath2, normalizeLineEndings(body));
757
757
  printFileOutput(fileSize(outPath2), "dist/html/", outFilePath2);
758
758
  return;
759
759
  }
@@ -791,7 +791,7 @@ async function build(rootProjectDir, options) {
791
791
  } else if (rootConfig.minifyHtml) {
792
792
  html = await htmlMinify(html, rootConfig.minifyHtmlOptions);
793
793
  }
794
- await writeFile(outPath, html);
794
+ await writeFile(outPath, normalizeLineEndings(html));
795
795
  printFileOutput(fileSize(outPath), "dist/html/", outFilePath);
796
796
  } catch (e) {
797
797
  logBuildError(
@@ -892,6 +892,9 @@ function formatParams(params) {
892
892
  return ` ${key}: ${value}`;
893
893
  }).join("\n");
894
894
  }
895
+ function normalizeLineEndings(str) {
896
+ return str.replace(/\r\n?/g, "\n");
897
+ }
895
898
 
896
899
  // src/cli/codegen.ts
897
900
  import { promises as fs3 } from "node:fs";
@@ -3529,4 +3532,4 @@ export {
3529
3532
  createProdServer,
3530
3533
  CliRunner
3531
3534
  };
3532
- //# sourceMappingURL=chunk-URG2INLL.js.map
3535
+ //# sourceMappingURL=chunk-VQPDCDKL.js.map