MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / loadVite

Function loadVite

packages/vite/test/Vite.test.ts:85–91  ·  view source on GitHub ↗
(major: 7 | 8)

Source from the content-addressed store, hash-verified

83}
84
85async function loadVite(major: 7 | 8): Promise<ViteLike> {
86 const url = new URL(
87 `./fixtures/vite-versions/node_modules/vite-v${major}/dist/node/index.js`,
88 import.meta.url
89 );
90 return (await import(url.href)) as unknown as ViteLike;
91}
92
93// Both cases share global state (process.cwd, the dist/ folder), so they
94// must run sequentially — that is what vitest does inside a single describe.

Callers 1

Vite.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected