fix(vite): treat .pcss extension as a CSS extension (#25673)

This commit is contained in:
Aman Desai 2024-02-07 15:30:30 +05:30 committed by GitHub
parent 4f3391fc0a
commit ae83df8c43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ export function uniq<T> (arr: T[]): T[] {
}
// Copied from vue-bundle-renderer utils
const IS_CSS_RE = /\.(?:css|scss|sass|postcss|less|stylus|styl)(\?[^.]+)?$/
const IS_CSS_RE = /\.(?:css|scss|sass|postcss|pcss|less|stylus|styl)(\?[^.]+)?$/
export function isCSS (file: string) {
return IS_CSS_RE.test(file)