From 102ec4dafc4bda7888f889fd1e046abc7b0fd7c4 Mon Sep 17 00:00:00 2001 From: Hizbu Azka Date: Mon, 16 Nov 2026 16:48:00 +0700 Subject: fix regex page for firefox import maps currently have to load before any ES module and there can only be a single import map per document update if compatibility soon be supported https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#browser_compatibility --- _includes/cm-importmap.html | 22 +++++++++++----------- _tools/cm-esbuild/scripts/deploy.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/_includes/cm-importmap.html b/_includes/cm-importmap.html index 90bf32e..dca7e34 100644 --- a/_includes/cm-importmap.html +++ b/_includes/cm-importmap.html @@ -1,3 +1,14 @@ + - diff --git a/_tools/cm-esbuild/scripts/deploy.js b/_tools/cm-esbuild/scripts/deploy.js index 2dcae72..3b198fe 100644 --- a/_tools/cm-esbuild/scripts/deploy.js +++ b/_tools/cm-esbuild/scripts/deploy.js @@ -49,7 +49,7 @@ const preload = jsFiles ) .join("\n"); -const html = `${preload}\n\n`; +const html = `\n${preload}\n`; fs.mkdirSync(path.join(site, "_includes"), { recursive: true }); fs.writeFileSync(path.join(site, "_includes", "cm-importmap.html"), html); console.log("published, version", v); -- cgit