MCPcopy Index your code
hub / github.com/TanStack/devtools / buildPluginString

Function buildPluginString

packages/devtools-vite/src/inject-plugin.ts:123–132  ·  view source on GitHub ↗
(
  importName: string,
  displayName: string,
  pluginType: string,
)

Source from the content-addressed store, hash-verified

121}
122
123function buildPluginString(
124 importName: string,
125 displayName: string,
126 pluginType: string,
127): string {
128 if (pluginType === 'function') {
129 return `${importName}()`
130 }
131 return `{ name: ${JSON.stringify(displayName)}, render: <${importName} /> }`
132}
133
134export const transformAndInject = (
135 code: string,

Callers 1

transformAndInjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected