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

Callers 1

index.test.tsFile · 0.85

Calls 3

removeDevtoolsFunction · 0.90
detectDevtoolsFileFunction · 0.90
injectRuntimeBridgeFunction · 0.90

Tested by

no test coverage detected