Skip to content

Commit

Permalink
fix(vite): treat .pcss extension as a CSS extension (#25673)
Browse files Browse the repository at this point in the history
  • Loading branch information
amandesai01 committed Feb 7, 2024
1 parent 4f3391f commit ae83df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae83df8

Please sign in to comment.