From 38a7ca6467385eaea2efb5ee037dd0fad4a10572 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 3 Jan 2024 13:20:17 +0100 Subject: [PATCH] importmap-rails 2 defaults to preloading on --- lib/install/turbo_with_importmap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install/turbo_with_importmap.rb b/lib/install/turbo_with_importmap.rb index cbb8def7..92125131 100644 --- a/lib/install/turbo_with_importmap.rb +++ b/lib/install/turbo_with_importmap.rb @@ -2,4 +2,4 @@ append_to_file "app/javascript/application.js", %(import "@hotwired/turbo-rails"\n) say "Pin Turbo" -append_to_file "config/importmap.rb", %(pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true\n) +append_to_file "config/importmap.rb", %(pin "@hotwired/turbo-rails", to: "turbo.min.js"\n)