(config: BuildConfig)
| 474 | } |
| 475 | |
| 476 | async function buildMiddlewareCloudflarePages(config: BuildConfig) { |
| 477 | const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'cloudflare-pages', 'index.ts')]; |
| 478 | |
| 479 | await build({ |
| 480 | entryPoints, |
| 481 | outfile: join(config.distQwikCityPkgDir, 'middleware', 'cloudflare-pages', 'index.mjs'), |
| 482 | bundle: true, |
| 483 | platform: 'node', |
| 484 | target: nodeTarget, |
| 485 | format: 'esm', |
| 486 | external: MIDDLEWARE_EXTERNALS, |
| 487 | plugins: [resolveRequestHandler('../request-handler/index.mjs')], |
| 488 | }); |
| 489 | } |
| 490 | |
| 491 | async function buildMiddlewareBun(config: BuildConfig) { |
| 492 | const entryPoints = [join(config.srcQwikCityDir, 'middleware', 'bun', 'index.ts')]; |
no test coverage detected
searching dependent graphs…