instance method
preloaded_module_paths
Ruby on Rails 2.2.3
Since v1.0.3 Last seen in v2.2.3Signature
preloaded_module_paths(resolver:, entry_point: "application", cache_key: :preloaded_module_paths)
Returns an array of all the resolved module paths of the pinned packages. The resolver must respond to path_to_asset, such as ActionController::Base.helpers or ApplicationController.helpers. You’ll want to use the 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.
Parameters
-
resolverkeyreq -
entry_pointkey = "application" -
cache_keykey = :preloaded_module_paths
Source
# File lib/importmap/map.rb, line 87
def preloaded_module_paths(resolver:, entry_point: "application", cache_key: :preloaded_module_paths)
preloaded_module_packages(resolver: resolver, entry_point: entry_point, cache_key: cache_key).keys
end
Defined in lib/importmap/map.rb line 87
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Map