class Importmap::Map
def preloaded_module_paths(resolver:, cache_key: :preloaded_module_paths)
resolve for different asset hosts, you can pass in a custom `cache_key` to vary the cache used by this method for
resolver that has been configured for the `asset_host` you want these resolved paths to use. In case you need to
`path_to_asset`, such as `ActionController::Base.helpers` or `ApplicationController.helpers`. You'll want to use the
Returns an array of all the resolved module paths of the pinned packages. The `resolver` must respond to
def preloaded_module_paths(resolver:, cache_key: :preloaded_module_paths) cache_as(cache_key) do resolve_asset_paths(expanded_preloading_packages_and_directories, resolver: resolver).values end end