(content: string)
| 573 | |
| 574 | if (config.command === 'serve') { |
| 575 | const getContentWithSourcemap = async (content: string) => { |
| 576 | if (config.css.devSourcemap) { |
| 577 | const sourcemap = this.getCombinedSourcemap() |
| 578 | if (sourcemap.mappings) { |
| 579 | await injectSourcesContent( |
| 580 | sourcemap, |
| 581 | cleanUrl(id), |
| 582 | config.logger, |
| 583 | ) |
| 584 | } |
| 585 | return getCodeWithSourcemap('css', content, sourcemap) |
| 586 | } |
| 587 | return content |
| 588 | } |
| 589 | |
| 590 | if (isDirectCSSRequest(id)) { |
| 591 | return null |
no test coverage detected