MCPcopy Create free account
hub / github.com/TanStack/query / load

Function load

packages/query-devtools/tsdown.config.ts:43–51  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

41 return undefined
42 },
43 load(id: string) {
44 if (!id.endsWith('.css?inline')) return undefined
45 const css = readFileSync(id.slice(0, -'?inline'.length), 'utf8')
46 .replace(/\/\*[\s\S]*?\*\//g, '')
47 .replace(/\s+/g, ' ')
48 .replace(/ ?([{};]) ?/g, '$1')
49 .trim()
50 return { code: `export default ${JSON.stringify(css)}`, moduleType: 'js' }
51 },
52})
53
54const baseConfig: UserConfig = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected