MCPcopy
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
8const nonJsRe = /\.json(?:$|\?)/
9const isNonJsRequest = (request: string): boolean => nonJsRe.test(request)
10const escapedDotRE = /(?<!\\)\\./g
11
12export function definePlugin(config: ResolvedConfig): Plugin {

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected