MCPcopy Index your code
hub / github.com/nuxt-modules/tailwindcss / JSONStringifyWithUnsupportedVals

Function JSONStringifyWithUnsupportedVals

src/internal-context/proxy.ts:7–7  ·  view source on GitHub ↗
(val: any)

Source from the content-addressed store, hash-verified

5
6const UNSUPPORTED_VAL_STR = 'UNSUPPORTED_VAL_STR'
7const JSONStringifyWithUnsupportedVals = (val: any) => JSON.stringify(val, (_, v) => ['function'].includes(typeof v) ? UNSUPPORTED_VAL_STR : v)
8const JSONStringifyWithRegex = (obj: any) => JSON.stringify(obj, (_, v) => v instanceof RegExp ? `__REGEXP ${v.toString()}` : v)
9
10export const createObjProxy = (configUpdatedHook: Record<string, string>, meta: ReturnType<typeof twCtx.use>['meta']) => {

Callers 1

createObjProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected