Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ isNonJsRequest
Function
isNonJsRequest
packages/vite/src/node/plugins/define.ts:9–9 ·
view source on GitHub ↗
(request: string)
Source
from the content-addressed store, hash-verified
7
8
const
nonJsRe = /\.json(?:$|\?)/
9
const
isNonJsRequest = (request: string): boolean => nonJsRe.test(request)
10
const
escapedDotRE = /(?<!\\)\\./g
11
12
export
function
definePlugin(config: ResolvedConfig): Plugin {
Callers
1
handler
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected