Skip to content

Commit

Permalink
fix: improve including regex, close #1771
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 18, 2022
1 parent 2a5289d commit 002b1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared-integration/src/defaults.ts
@@ -1,4 +1,4 @@
import { cssIdRE } from '@unocss/core'

export const defaultExclude = [cssIdRE]
export const defaultInclude = [/\.vue$/, /\.vue\?vue/, /\.svelte$/, /\.[jt]sx$/, /\.mdx?$/, /\.astro$/, /\.elm$/, /\.html$/]
export const defaultInclude = [/\.(vue|svelte|[jt]sx|mdx?|astro|elm|html)($|\?)/]

0 comments on commit 002b1ad

Please sign in to comment.