Skip to content

Commit e428f2c

Browse files
committed
wip
1 parent 384429f commit e428f2c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/options.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { ComponentResolver, ComponentResolverObject, Options, ResolvedOptio
22
import { join, resolve } from 'node:path'
33
import { slash, toArray } from '@antfu/utils'
44
import { getPackageInfoSync, isPackageExists } from 'local-pkg'
5-
import { escapePath } from 'tinyglobby'
65
import { detectTypeImports } from './type-imports/detect'
76

87
export const defaultOptions: Omit<Required<Options>, 'include' | 'exclude' | 'excludeNames' | 'transformer' | 'globs' | 'globsExclude' | 'directives' | 'types' | 'version'> = {
@@ -64,8 +63,8 @@ export function resolveOptions(options: Options, root: string): ResolvedOptions
6463
i = i.slice(1)
6564
}
6665
return resolved.deep
67-
? prefix + (join(escapePath(slash(i)), `**/*.${extsGlob}`))
68-
: prefix + (join(escapePath(slash(i)), `*.${extsGlob}`))
66+
? prefix + (join(slash(i), slash(`**/*.${extsGlob}`)))
67+
: prefix + (join(slash(i), slash(`*.${extsGlob}`)))
6968
})
7069

7170
if (!resolved.extensions.length)

0 commit comments

Comments
 (0)