fix(uno): exclude node_modules from scan (#588)

This commit is contained in:
Makito
2025-09-14 01:59:00 +09:00
committed by GitHub
parent 4fd4d1de9d
commit 697d680417
+6 -3
View File
@@ -174,9 +174,12 @@ export function sharedUnoConfig() {
// the default
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
// include js/ts files
'(components|src)/**/*.{js,ts,vue}',
'**/stage-ui/**/*.{vue,js,ts}',
'**/ui/**/*.{vue,js,ts}',
'(components|src)/**/*.{js,ts,vue}', // THIS CAN INCLUDE node_modules
'**/stage-ui/**/*.{vue,js,ts}', // THIS TOO
'**/ui/**/*.{vue,js,ts}', // THIS TOO
],
exclude: [
/\/node_modules\//, // DO NOT SCAN THE BLACK HOLE
],
},
},