importmap-rails 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/app/helpers/importmap/importmap_tags_helper.rb +2 -2
- data/lib/importmap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b283cbeb91cfc32169687652f221e43cc9c7a5c789a2bd170726c0cd0c57f6a9
|
4
|
+
data.tar.gz: ad7cf03dda4149f895bf5168422c9b08259ce6c506c103bc701d46e33590f0d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61c4c1787c73c9d18f6c987fff819c32731a649d411493d4e06bac4e41b026f528eaac96f4ddd8fd648637ee1e9854d98bb989a2256c9aa22de17730350c2712
|
7
|
+
data.tar.gz: 3bf962788a9188be9df18b228c829c53239711632e787efc12b433135ff0e41d10e1d7e9cd7531e5a2f9b1be0e952e749e0751b87f97dbdd05dfc1c7394c6f3e
|
@@ -11,12 +11,12 @@ module Importmap::ImportmapTagsHelper
|
|
11
11
|
# Generate an inline importmap tag using the passed `importmap_paths` object to produce the JSON map.
|
12
12
|
# By default, `Rails.application.config.importmap.paths` is used for this object,
|
13
13
|
def javascript_inline_importmap_tag(importmap_paths = Rails.application.config.importmap.paths)
|
14
|
-
tag.script(importmap_paths.to_json(self).html_safe, type: "importmap")
|
14
|
+
tag.script(importmap_paths.to_json(self).html_safe, type: "importmap", "data-turbo-track": "reload")
|
15
15
|
end
|
16
16
|
|
17
17
|
# Include the es-module-shim needed to make importmaps work in browsers without native support (like Firefox + Safari).
|
18
18
|
def javascript_importmap_shim_tag
|
19
|
-
javascript_include_tag "es-module-shims", async: true
|
19
|
+
javascript_include_tag "es-module-shims", async: true, "data-turbo-track": "reload"
|
20
20
|
end
|
21
21
|
|
22
22
|
# Import a named JavaScript module using a script-module tag.
|
data/lib/importmap/version.rb
CHANGED