MCPcopy Create free account
hub / github.com/TanStack/devtools / detectDevtoolsFile

Function detectDevtoolsFile

packages/devtools-vite/src/inject-plugin.ts:258–260  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

256 * Detects if a file contains TanStack devtools import
257 */
258export function detectDevtoolsFile(code: string): boolean {
259 return detectDevtoolsImport(code)
260}
261
262/**
263 * Injects a plugin into the TanStackDevtools component in a file

Callers 2

transformFunction · 0.90

Calls 1

detectDevtoolsImportFunction · 0.85

Tested by

no test coverage detected