MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / toImportSpecifier

Function toImportSpecifier

packages/vite/configuration/javascript.ts:71–73  ·  view source on GitHub ↗
(abs: string)

Source from the content-addressed store, hash-verified

69 return false;
70 }
71 function toImportSpecifier(abs: string) {
72 return '/' + abs.replace(/^\/+/, '');
73 }
74 function toCtxKey(abs: string) {
75 let rel = abs;
76 if (rel.startsWith(appRootPrefix)) rel = rel.slice(appRootPrefix.length);

Callers 1

pushImportFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected