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

Function isRtLike

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

Source from the content-addressed store, hash-verified

47 let showModalUsed = false;
48
49 const isRtLike = (src: string | null | undefined) => !!src && /(?:https?:\/\/[^"']+)?\/ns\/rt(?:\/[\d]+)?(?:\?p=[^"']+)?$/.test(src);
50 const isCoreLike = (src: string | null | undefined) => !!src && /(?:https?:\/\/[^"']+)?\/ns\/core(?:\/[\d]+)?(?:\?p=[^"']+)?$/.test(src);
51 const isSfcPath = (src: string | null | undefined) => !!src && /\.vue(?:\?|$)/.test(src);
52 const isVuePrebundle = (src: string | null | undefined) => !!src && /\.vite\/deps\/(?:vue|nativescript-vue)[^/]*\.js/.test(src);

Callers 2

ImportDeclarationFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected