Skip to content

Commit e3bcc1a

Browse files
authored
fix: treat .pcss extension as a CSS extension (#69)
1 parent 9c47b84 commit e3bcc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { ResourceMeta } from './types'
22

33
const IS_JS_RE = /\.[cm]?js(\?[^.]+)?$/
44
const HAS_EXT_RE = /[^./]+\.[^./]+$/
5-
const IS_CSS_RE = /\.(css|postcss|sass|scss|less|stylus|styl)(\?[^.]+)?$/
5+
const IS_CSS_RE = /\.(css|postcss|pcss|sass|scss|less|stylus|styl)(\?[^.]+)?$/
66

77
export function isJS (file: string) {
88
return IS_JS_RE.test(file) || !HAS_EXT_RE.test(file)

0 commit comments

Comments
 (0)