MCPcopy Index your code
hub / github.com/tldraw/tldraw / import

Method import

internal/scripts/refresh-assets.ts:667–674  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

665 }
666
667 import(file: string) {
668 let name = this.imports.get(file)
669 if (!name) {
670 name = this.getName(file)
671 this.imports.set(file, name)
672 }
673 return name
674 }
675
676 formatName(name: string) {
677 return `$_${name.replace(/\W+/g, '_')}`

Callers 1

Calls 3

getNameMethod · 0.95
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected