Skip to content

Commit 70b2937

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 34defe5 commit 70b2937

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/importmap/engine.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Engine < ::Rails::Engine
99
config.importmap.sweep_cache = Rails.env.development? || Rails.env.test?
1010
config.importmap.rescuable_asset_errors = [
1111
defined?(Sprockets::Rails) && Sprockets::Rails::Helper::AssetNotFound,
12+
defined?(Propshaft) && Propshaft::MissingAssetError,
1213
].compact
1314

1415
config.autoload_once_paths = %W( #{root}/app/helpers )

0 commit comments

Comments
 (0)