MCPcopy
hub / github.com/vitejs/vite / run

Function run

packages/vite/src/node/__tests__/plugins/importGlob/parse.spec.ts:4–16  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

2import { parseImportGlob } from '../../../plugins/importMetaGlob'
3
4async function run(input: string) {
5 const items = await parseImportGlob(
6 input,
7 process.cwd(),
8 process.cwd(),
9 (id) => id,
10 )
11 return items.map((i) => ({
12 globs: i.globs,
13 options: i.options,
14 start: i.start,
15 }))
16}
17
18async function runError(input: string) {
19 try {

Callers 2

runErrorFunction · 0.70
parse.spec.tsFile · 0.70

Calls 1

parseImportGlobFunction · 0.90

Tested by

no test coverage detected