···1616import TestExclude from 'test-exclude'
1717import c from 'tinyrainbow'
1818import { BaseCoverageProvider } from 'vitest/coverage'
1919+import { isCSSRequest } from 'vitest/node'
19202021import { version } from '../package.json' with { type: 'json' }
2122import { COVERAGE_STORE_KEY } from './constants'
···6465 // Istanbul/babel cannot instrument CSS - e.g. Vue imports end up here.
6566 // File extension itself is .vue, but it contains CSS.
6667 // e.g. "Example.vue?vue&type=style&index=0&scoped=f7f04e08&lang.css"
6767- if (id.endsWith('.css')) {
6868+ if (isCSSRequest(id)) {
6869 return
6970 }
7071