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

Function includeExt

packages/vite/hmr/server/websocket.ts:2190–2190  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

2188 // Only include application modules we can serve (e.g., under /src and known .vue/.ts/.js entries in the graph).
2189 function computeTxnOrderForChanged(changedIds: string[]): string[] {
2190 const includeExt = (id: string) => ACTIVE_STRATEGY.matchesFile(id) || /\.(ts|js|mjs|tsx|jsx)$/i.test(id);
2191 const isApp = (id: string) => id.startsWith(APP_VIRTUAL_WITH_SLASH);
2192 const roots = changedIds.map(normalizeGraphId).filter((id) => graph.has(id) && (isApp(id) || ACTIVE_STRATEGY.matchesFile(id)) && includeExt(id));
2193 const toVisit = new Set<string>();

Callers 1

Calls 2

matchesFileMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected