class Importmap::Reloader
def config
def config Rails.application.config end
def import_map_paths
def import_map_paths config.paths["config/importmap.rb"].existent end
def reload!
def reload! import_map_paths.each { |path| load path } end
def updater
def updater @updater ||= config.file_watcher.new(import_map_paths) { reload! } end