Sha256: 140ebc731e0bd038979bbfb444929c2a3e3b8addffa6cbaabc18baf6d74a8744

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

module Stimulus::StimulusHelper
  def stimulus_include_tags
    safe_join [
      javascript_include_tag("stimulus/libraries/es-module-shims", type: "module"),
      tag.script(type: "importmap-shim", src: asset_path("importmap.json")),
      javascript_include_tag("stimulus/libraries/stimulus", type: "module-shim"),
      javascript_include_tag("stimulus/loaders/autoloader", type: "module-shim")
    ], "\n"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stimulus-rails-0.2.3 app/helpers/stimulus/stimulus_helper.rb
stimulus-rails-0.2.2 app/helpers/stimulus/stimulus_helper.rb
stimulus-rails-0.2.1 app/helpers/stimulus/stimulus_helper.rb
stimulus-rails-0.2.0 app/helpers/stimulus/stimulus_helper.rb