MCPcopy Index your code
hub / github.com/massCodeIO/massCode / importEsm

Function importEsm

src/main/utils/index.ts:17–20  ·  view source on GitHub ↗
(specifier: string)

Source from the content-addressed store, hash-verified

15}
16
17export function importEsm(specifier: string) {
18 // eslint-disable-next-line no-new-func
19 return new Function('s', 'return import(s)')(specifier) as Promise<any>
20}
21
22export function isSqliteFile(dbPath: string): boolean {
23 try {

Callers 3

getChokidarWatchFunction · 0.90
initApiFunction · 0.90
getChokidarWatchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected