MCPcopy
hub / github.com/QwikDev/qwik / buildAdapterSharedVite

Function buildAdapterSharedVite

scripts/qwik-city.ts:362–392  ·  view source on GitHub ↗
(config: BuildConfig)

Source from the content-addressed store, hash-verified

360}
361
362async function buildAdapterSharedVite(config: BuildConfig) {
363 const entryPoints = [join(config.srcQwikCityDir, 'adapters', 'shared', 'vite', 'index.ts')];
364
365 await build({
366 entryPoints,
367 outfile: join(config.distQwikCityPkgDir, 'adapters', 'shared', 'vite', 'index.mjs'),
368 bundle: true,
369 platform: 'node',
370 target: nodeTarget,
371 format: 'esm',
372 external: ADAPTER_EXTERNALS,
373 plugins: [
374 resolveStatic('../../../static/index.mjs'),
375 resolveRequestHandler('../../../middleware/request-handler/index.mjs'),
376 ],
377 });
378
379 await build({
380 entryPoints,
381 outfile: join(config.distQwikCityPkgDir, 'adapters', 'shared', 'vite', 'index.cjs'),
382 bundle: true,
383 platform: 'node',
384 target: nodeTarget,
385 format: 'cjs',
386 external: ADAPTER_EXTERNALS,
387 plugins: [
388 resolveStatic('../../../static/index.cjs'),
389 resolveRequestHandler('../../../middleware/request-handler/index.cjs'),
390 ],
391 });
392}
393
394async function buildAdapterStaticVite(config: BuildConfig) {
395 const entryPoints = [join(config.srcQwikCityDir, 'adapters', 'static', 'vite', 'index.ts')];

Callers 1

buildQwikCityFunction · 0.85

Calls 4

joinFunction · 0.85
resolveStaticFunction · 0.85
resolveRequestHandlerFunction · 0.85
buildFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…