We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent aff54e1 commit 49300b3Copy full SHA for 49300b3
packages/vite/src/node/optimizer/scan.ts
@@ -20,6 +20,7 @@ import {
20
SPECIAL_QUERY_RE,
21
} from '../constants'
22
import {
23
+ arraify,
24
cleanUrl,
25
createDebugger,
26
dataUrlRE,
@@ -239,6 +240,10 @@ function orderedDependencies(deps: Record<string, string>) {
239
240
}
241
242
function globEntries(pattern: string | string[], config: ResolvedConfig) {
243
+ const resolvedPatterns = arraify(pattern)
244
+ if (resolvedPatterns.every((str) => !glob.isDynamicPattern(str))) {
245
+ return resolvedPatterns.map((p) => path.resolve(config.root, p))
246
+ }
247
return glob(pattern, {
248
cwd: config.root,
249
ignore: [
0 commit comments