Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
16
const
jsonLangs = `\\.(?:json|json5)(?:$|\\?)`
17
const
jsonLangRE =
new
RegExp(jsonLangs)
18
export
const
isJSONRequest = (request: string): boolean =>
19
jsonLangRE.test(request)
Callers
1
ssrTransform
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected