MCPcopy
hub / github.com/esm-dev/esm.sh / newImports

Function newImports

internal/importmap/importmap.go:615–620  ·  view source on GitHub ↗
(imports map[string]string)

Source from the content-addressed store, hash-verified

613}
614
615func newImports(imports map[string]string) *Imports {
616 if imports == nil {
617 imports = map[string]string{}
618 }
619 return &Imports{imports: imports}
620}
621
622func normalizeUrl(baseUrl *url.URL, path string) string {
623 if baseUrl != nil && (strings.HasPrefix(path, "./") || strings.HasPrefix(path, "../")) {

Callers 4

TestAddPackagesFunction · 0.85
BlankFunction · 0.85
ParseFunction · 0.85
addImportMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestAddPackagesFunction · 0.68