Module: Stimulus::StimulusHelper

Defined in:
app/helpers/stimulus/stimulus_helper.rb

Instance Method Summary collapse

Instance Method Details

#stimulus_include_tagsObject



2
3
4
5
6
7
8
9
# File 'app/helpers/stimulus/stimulus_helper.rb', line 2

def stimulus_include_tags
  [
    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")
  ].join("\n").html_safe
end