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

Function buildMiddlewareBun

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

Source from the content-addressed store, hash-verified

489}
490
491async function buildMiddlewareBun(config: BuildConfig) {
492 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'bun', 'index.ts')];
493
494 await build({
495 entryPoints,
496 outfile: join(config.distQwikCityPkgDir, 'middleware', 'bun', 'index.mjs'),
497 bundle: true,
498 platform: 'node',
499 target: nodeTarget,
500 format: 'esm',
501 external: MIDDLEWARE_EXTERNALS,
502 plugins: [resolveRequestHandler('../request-handler/index.mjs')],
503 });
504}
505
506async function buildMiddlewareDeno(config: BuildConfig) {
507 const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'deno', 'index.ts')];

Callers 1

buildQwikCityFunction · 0.85

Calls 3

joinFunction · 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…