MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / isSfcArtifact

Function isSfcArtifact

packages/vite/hmr/client/utils.ts:166–166  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

164
165export async function requestModuleFromServer(spec: string): Promise<string> {
166 const isSfcArtifact = (s: string) => /(?:^|\/)sfc-[a-f0-9]{8}\.mjs$/i.test(s) || /\/_ns_hmr\/src\/sfc\//.test(s) || /__NSDOC__\/_ns_hmr\/src\/sfc\//.test(s);
167 // Ignore Vite/virtual helper or empty specs
168 if (/^\/?\0/.test(spec) || /plugin-vue:export-helper/.test(spec)) {
169 if (__NS_ENV_VERBOSE__) console.log('[hmr-fetch] skipping virtual helper', spec);

Callers 1

requestModuleFromServerFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected