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

Function transform

packages/devtools-vite/src/plugin.ts:334–349  ·  view source on GitHub ↗
(code, id)

Source from the content-addressed store, hash-verified

332 }
333 }
334 })
335
336 // Listen for add plugin to devtools requests
337 devtoolsEventClient.on('add-plugin-to-devtools', (event) => {
338 const { packageName, pluginName, pluginImport } = event.payload
339
340 console.log(
341 chalk.blueBright(
342 `[@tanstack/devtools-vite] Adding ${packageName} to devtools...`,
343 ),
344 )
345
346 const result = addPluginToDevtools(
347 devtoolsFileId,
348 packageName,
349 pluginName,
350 pluginImport,
351 )
352

Callers 1

index.test.tsFile · 0.85

Calls 3

removeDevtoolsFunction · 0.90
detectDevtoolsFileFunction · 0.90
injectRuntimeBridgeFunction · 0.90

Tested by

no test coverage detected