lib/importmap/map.rb in importmap-rails-0.7.6 vs lib/importmap/map.rb in importmap-rails-0.8.0
- old
+ new
@@ -20,15 +20,15 @@
end
self
end
- def pin(name, to: nil, preload: true)
+ def pin(name, to: nil, preload: false)
clear_cache
@packages[name] = MappedFile.new(name: name, path: to || "#{name}.js", preload: preload)
end
- def pin_all_from(dir, under: nil, to: nil, preload: true)
+ def pin_all_from(dir, under: nil, to: nil, preload: false)
clear_cache
@directories[dir] = MappedDir.new(dir: dir, under: under, path: to, preload: preload)
end
def preloaded_module_paths(resolver:)