Skip to content

Commit 2592730

Browse files
committed
fix: exclude regex, close #203
1 parent d1aa643 commit 2592730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/unplugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { shouldTransform } from './utils'
88
export default createUnplugin<Options>((options = {}) => {
99
const filter = createFilter(
1010
options.include || [/\.vue$/, /\.vue\?vue/],
11-
options.exclude || [/node_modules/, /\.git/, /\.nuxt/],
11+
options.exclude || [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
1212
)
1313
const ctx: Context = new Context(options)
1414

0 commit comments

Comments
 (0)