lib/importmap/map.rb in importmap-rails-2.0.2 vs lib/importmap/map.rb in importmap-rails-2.0.3
- old
+ new
@@ -40,10 +40,10 @@
# resolver that has been configured for the `asset_host` you want these resolved paths to use. In case you need to
# resolve for different asset hosts, you can pass in a custom `cache_key` to vary the cache used by this method for
# the different cases.
def preloaded_module_paths(resolver:, entry_point: "application", cache_key: :preloaded_module_paths)
cache_as(cache_key) do
- resolve_asset_paths(expanded_preloading_packages_and_directories(entry_point:), resolver:).values
+ resolve_asset_paths(expanded_preloading_packages_and_directories(entry_point: entry_point), resolver: resolver).values
end
end
# Returns a JSON hash (as a string) of all the resolved module paths of the pinned packages in the import map format.
# The `resolver` must respond to `path_to_asset`, such as `ActionController::Base.helpers` or