MCPcopy
hub / github.com/vitejs/vite / handleDefineValue

Function handleDefineValue

packages/vite/src/node/plugins/define.ts:219–223  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

217}
218
219function handleDefineValue(value: any): string {
220 if (typeof value === 'undefined') return 'undefined'
221 if (typeof value === 'string') return value
222 return JSON.stringify(value)
223}

Callers 2

generatePatternFunction · 0.85
serializeDefineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected