Skip to content

Commit 6440d53

Browse files
committed
WIP Add default support for Propshaft::MissingAssetError
TODO: tests...currently the test app requires sprockets-rails - should we create a test app that uses propshaft?
1 parent 313e2cf commit 6440d53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/importmap/engine.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class Engine < ::Rails::Engine
5555
if defined?(Sprockets::Rails)
5656
app.config.importmap.rescuable_asset_errors << Sprockets::Rails::Helper::AssetNotFound
5757
end
58+
if defined?(Propshaft)
59+
app.config.importmap.rescuable_asset_errors << Propshaft::MissingAssetError
60+
end
5861
end
5962
end
6063
end

0 commit comments

Comments
 (0)