(id: string)
| 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 | |
| 54 | const baseConfig: UserConfig = { |
nothing calls this directly
no outgoing calls
no test coverage detected