fix(cli): handle patterns correctly on Windows (#10430)

Modify the handling of patterns in the `crawl` function to correctly
convert the current path to a pattern when it contains backslash on
Windows, in according to fast-glob's docs.
This commit is contained in:
Feng Kaiyu
2024-06-22 08:09:02 +08:00
committed by GitHub
parent 1200265425
commit 4cb165304b
4 changed files with 53 additions and 6 deletions
+1
View File
@@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
resolve: { alias: { src: '/src' } },
build: {
rollupOptions: {
input: 'src/index.ts',