class Importmap::Map

def pin(name, to: nil, preload: true)

def pin(name, to: nil, preload: true)
  clear_cache
  @packages[name] = MappedFile.new(name: name, path: to || "#{name}.js", preload: preload)
end