(config: BuildConfig)
| 276 | } |
| 277 | |
| 278 | async function buildAdapterDenoVite(config: BuildConfig) { |
| 279 | const entryPoints = [join(config.srcQwikCityDir, 'adapters', 'deno-server', 'vite', 'index.ts')]; |
| 280 | |
| 281 | await build({ |
| 282 | entryPoints, |
| 283 | outfile: join(config.distQwikCityPkgDir, 'adapters', 'deno-server', 'vite', 'index.mjs'), |
| 284 | bundle: true, |
| 285 | platform: 'node', |
| 286 | target: nodeTarget, |
| 287 | format: 'esm', |
| 288 | external: ADAPTER_EXTERNALS, |
| 289 | plugins: [resolveAdapterShared('../../shared/vite/index.mjs')], |
| 290 | }); |
| 291 | |
| 292 | await build({ |
| 293 | entryPoints, |
| 294 | outfile: join(config.distQwikCityPkgDir, 'adapters', 'deno-server', 'vite', 'index.cjs'), |
| 295 | bundle: true, |
| 296 | platform: 'node', |
| 297 | target: nodeTarget, |
| 298 | format: 'cjs', |
| 299 | external: ADAPTER_EXTERNALS, |
| 300 | plugins: [ |
| 301 | resolveAdapterShared('../../shared/vite/index.cjs'), |
| 302 | resolveRequestHandler('../../../middleware/request-handler/index.cjs'), |
| 303 | ], |
| 304 | }); |
| 305 | } |
| 306 | |
| 307 | async function buildAdapterNodeServerVite(config: BuildConfig) { |
| 308 | const entryPoints = [join(config.srcQwikCityDir, 'adapters', 'node-server', 'vite', 'index.ts')]; |
no test coverage detected
searching dependent graphs…