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

Function isNsCorePackage

packages/vite/hmr/helpers/ast-normalizer.ts:62–62  ·  view source on GitHub ↗
(src: string | null | undefined)

Source from the content-addressed store, hash-verified

60 return m ? m[1] : null;
61 };
62 const isNsCorePackage = (src: string | null | undefined) => !!src && /^@nativescript\/core(\/.*)?$/.test(src);
63
64 let seq = 0;
65 const makeUid = (hint: string) => `__ns_${hint}_${++seq}`;

Callers 3

ImportDeclarationFunction · 0.85
ImportExpressionFunction · 0.85
CallExpressionFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected