importmap-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58fefa79a892e0017e46e2b1b1f6298e16938ddce9f947e9570bb5e01b6f92ce
4
- data.tar.gz: f86494f7134a6bfb2263709e1ee672b295a8211707c46458819707e2252c5315
3
+ metadata.gz: b283cbeb91cfc32169687652f221e43cc9c7a5c789a2bd170726c0cd0c57f6a9
4
+ data.tar.gz: ad7cf03dda4149f895bf5168422c9b08259ce6c506c103bc701d46e33590f0d6
5
5
  SHA512:
6
- metadata.gz: c18ac3eea56dd8ede9b26ef69ded67a7ced18a16870a9c666d4dd78c7307883e494961c7ea9fa5425671bfa1ae1e52def91ed1dbb14135ef2c310643bb06cad3
7
- data.tar.gz: 949b018e0ad949d018dbec735d265eda311271d2ffaaf389263b28609c63dc6c2da154bd9f9694783008e3bc2aea310239e3a0b2b4632b0185c9159b8f8460a8
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.
@@ -1,3 +1,3 @@
1
1
  module Importmap
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importmap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson