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

Function workbenchClient

packages/ui/devtools/src/node/DevToolsVite.ts:215–221  ·  view source on GitHub ↗
(options: WorkbenchOptions)

Source from the content-addressed store, hash-verified

213].join("\n")
214
215const workbenchClient = (options: WorkbenchOptions): string =>
216 [
217 ...[options.setup ?? []].flat().map((setup) => `import ${JSON.stringify(setup)};`),
218 "import { DevTools } from \"@effect/ui-devtools\";",
219 `DevTools.workbench(import.meta.glob(${JSON.stringify(options.cases)}));`,
220 ""
221 ].join("\n")
222
223const hotClient = [
224 "if (import.meta.hot) {",

Callers 1

pluginFunction · 0.85

Calls 2

joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected