lib/stimulus/engine.rb in stimulus-rails-0.3.2 vs lib/stimulus/engine.rb in stimulus-rails-0.3.3
- old
+ new
@@ -6,12 +6,12 @@
end
end
initializer "stimulus.importmap" do
if Rails.application.config.respond_to?(:importmap)
- Rails.application.config.importmap.paths.tap do |paths|
- paths.asset "@hotwired/stimulus", path: "stimulus.js"
- paths.asset "@hotwired/stimulus-autoloader", path: "stimulus-autoloader.js"
+ Rails.application.config.importmap.draw do
+ pin "@hotwired/stimulus", to: "stimulus.js"
+ pin "@hotwired/stimulus-autoloader", to: "stimulus-autoloader.js"
end
end
end
end
end