summaryrefslogtreecommitdiff
path: root/_includes/cm-importmap.html
diff options
context:
space:
mode:
authorHizbu Azka <hanifan.azka@gmail.com>2026-11-16 16:48:00 +0700
committerHizbu Azka <hanifan.azka@gmail.com>2026-11-16 16:58:22 +0700
commit102ec4dafc4bda7888f889fd1e046abc7b0fd7c4 (patch)
tree81e74bf55acecab73b9d1d1d79cb55d1c98c8518 /_includes/cm-importmap.html
parent82a643feac26884a61f31d56bbe1d580e7e88501 (diff)
fix regex page for firefoxHEADmain
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
Diffstat (limited to '_includes/cm-importmap.html')
-rw-r--r--_includes/cm-importmap.html22
1 files changed, 11 insertions, 11 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 @@
+<script type="importmap">
+ {
+ "imports": {
+ "@codemirror/state": "{{ '/assets/cm/state.js' | relative_url }}?v=ea9398b90f",
+ "@codemirror/view": "{{ '/assets/cm/view.js' | relative_url }}?v=ea9398b90f",
+ "@codemirror/commands": "{{ '/assets/cm/commands.js' | relative_url }}?v=ea9398b90f",
+ "@codemirror/language": "{{ '/assets/cm/language.js' | relative_url }}?v=ea9398b90f",
+ "@uiw/codemirror-theme-github": "{{ '/assets/cm/theme.js' | relative_url }}?v=ea9398b90f"
+ }
+ }
+</script>
<link
rel="modulepreload"
href="{{ '/assets/cm/chunk-7PWEZHZB.js' | relative_url }}"
@@ -10,14 +21,3 @@
rel="modulepreload"
href="{{ '/assets/cm/chunk-JULZPKSW.js' | relative_url }}"
/>
-<script type="importmap">
- {
- "imports": {
- "@codemirror/state": "{{ '/assets/cm/state.js' | relative_url }}?v=ea9398b90f",
- "@codemirror/view": "{{ '/assets/cm/view.js' | relative_url }}?v=ea9398b90f",
- "@codemirror/commands": "{{ '/assets/cm/commands.js' | relative_url }}?v=ea9398b90f",
- "@codemirror/language": "{{ '/assets/cm/language.js' | relative_url }}?v=ea9398b90f",
- "@uiw/codemirror-theme-github": "{{ '/assets/cm/theme.js' | relative_url }}?v=ea9398b90f"
- }
- }
-</script>