Skip to content

Commit

Permalink
fix: treat .pcss extension as a CSS extension (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
amandesai01 authored Feb 7, 2024
1 parent 9c47b84 commit e3bcc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ResourceMeta } from './types'

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

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

0 comments on commit e3bcc1a

Please sign in to comment.