(params: string)
| 255 | } |
| 256 | |
| 257 | export function parseSourceFileParam(params: string) { |
| 258 | const value = params.trim() |
| 259 | if (!value || value === 'none' || value.startsWith('inline(')) { |
| 260 | return undefined |
| 261 | } |
| 262 | |
| 263 | const negated = value.startsWith('not ') |
| 264 | const sourceValue = negated ? value.slice(4).trim() : value |
| 265 | if (sourceValue.startsWith('inline(')) { |
| 266 | return undefined |
| 267 | } |
| 268 | |
| 269 | const match = /^(['"])(.+)\1$/.exec(sourceValue) |
| 270 | return match?.[2] |
| 271 | ? { |
| 272 | negated, |
| 273 | sourcePath: match[2], |
| 274 | } |
| 275 | : undefined |
| 276 | } |
| 277 | |
| 278 | export async function resolveCssSourceEntries( |
| 279 | root: Root, |
no outgoing calls
no test coverage detected