MCPcopy
hub / github.com/vitejs/vite / isJSONRequest

Function isJSONRequest

packages/vite/src/node/plugins/json.ts:18–19  ·  view source on GitHub ↗
(request: string)

Source from the content-addressed store, hash-verified

16const jsonLangs = `\\.(?:json|json5)(?:$|\\?)`
17const jsonLangRE = new RegExp(jsonLangs)
18export const isJSONRequest = (request: string): boolean =>
19 jsonLangRE.test(request)

Callers 1

ssrTransformFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected