@forsakringskassan/docs-generator 2.21.0 → 2.21.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-generator",
3
- "version": "2.21.0",
3
+ "version": "2.21.1",
4
4
  "description": "Documentation generator",
5
5
  "keywords": [
6
6
  "documentation"
@@ -25,9 +25,10 @@
25
25
 
26
26
  <!-- prettier-ignore -->
27
27
  {%- for asset in injectHead | take("type", "js") %}
28
+ <!-- prettier-ignore -->
28
29
  <script
29
30
  src="{{ asset.publicPath | relative(doc) }}"
30
- type="module"
31
+ {% if asset.format === "esm" %}type="module"{% endif %}
31
32
  crossorigin
32
33
  integrity="{{ asset.integrity }}"
33
34
  {{
@@ -121,9 +122,10 @@
121
122
 
122
123
  <!-- prettier-ignore -->
123
124
  {%- for asset in injectBody | take("type", "js") %}
125
+ <!-- prettier-ignore -->
124
126
  <script
125
127
  src="{{ asset.publicPath | relative(doc) }}"
126
- type="module"
128
+ {% if asset.format === "esm" %}type="module"{% endif %}
127
129
  crossorigin
128
130
  integrity="{{ asset.integrity }}"
129
131
  {{