MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getBrowserTarget

Function getBrowserTarget

integrations/clipper/vite.config.ts:18–22  ·  view source on GitHub ↗
(mode: string)

Source from the content-addressed store, hash-verified

16}
17
18function getBrowserTarget(mode: string): BrowserTarget {
19 return browsers.includes(mode as BrowserTarget)
20 ? (mode as BrowserTarget)
21 : 'chrome'
22}
23
24function readJson<T>(filePath: string): T {
25 return JSON.parse(readFileSync(filePath, 'utf8')) as T

Callers 1

vite.config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected