| 241 | })) && new URLSearchParams(location.search).has("bare"))` |
| 242 | |
| 243 | const 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 | |
| 257 | const scriptRE = /\.[cm]?[jt]sx?$/ |
| 258 | |