MCPcopy Create free account
hub / github.com/Effect-TS/effect / devToolsClient

Function devToolsClient

packages/ui/devtools/src/node/DevToolsVite.ts:243–255  ·  view source on GitHub ↗
(
  options: OverlayOptions & {
    readonly fields: ReadonlyArray<string> | undefined
  },
  workbench: string | undefined
)

Source from the content-addressed store, hash-verified

241 })) && new URLSearchParams(location.search).has("bare"))`
242
243const devToolsClient = (
244 options: OverlayOptions & {
245 readonly fields: ReadonlyArray<string> | undefined
246 },
247 workbench: string | undefined
248): string =>
249 [
250 "import { DevTools } from \"@effect/ui-devtools\";",
251 workbench !== undefined
252 ? `DevTools.attach({ ...${JSON.stringify(options)}, panel: ${bare(workbench)} });`
253 : `DevTools.attach(${JSON.stringify(options)});`,
254 ""
255 ].join("\n")
256
257const scriptRE = /\.[cm]?[jt]sx?$/
258

Callers 1

pluginFunction · 0.85

Calls 2

bareFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected