We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e21177 commit 26a9c88Copy full SHA for 26a9c88
lib/importmap/engine.rb
@@ -53,10 +53,11 @@ class Engine < ::Rails::Engine
53
end
54
55
56
- initializer 'importmap.rescuable_asset_errors' do |app|
+ initializer "importmap.rescuable_asset_errors" do |app|
57
if defined?(Propshaft)
58
app.config.importmap.rescuable_asset_errors << Propshaft::MissingAssetError
59
60
+
61
if defined?(Sprockets::Rails)
62
app.config.importmap.rescuable_asset_errors << Sprockets::Rails::Helper::AssetNotFound
63
0 commit comments