MCPcopy Create free account
hub / github.com/fontsource/fontsource / transform

Function transform

website/vite.config.ts:46–50  ·  view source on GitHub ↗
(code, id)

Source from the content-addressed store, hash-verified

44 name: 'css-additional-data',
45 enforce: 'pre',
46 transform(code, id) {
47 if (id.endsWith('.css') || id.endsWith('.css?inline')) {
48 return `${customMedia}\n${code}`;
49 }
50 },
51 },
52 cloudflare({ viteEnvironment: { name: 'ssr' } }),
53 mdx(MdxConfig),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected