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

Function buildAdapterNetlifyEdgeVite

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

Source from the content-addressed store, hash-verified

331}
332
333async function buildAdapterNetlifyEdgeVite(config: BuildConfig) {
334 const entryPoints = [join(config.srcQwikCityDir, 'adapters', 'netlify-edge', 'vite', 'index.ts')];
335
336 await build({
337 entryPoints,
338 outfile: join(config.distQwikCityPkgDir, 'adapters', 'netlify-edge', 'vite', 'index.mjs'),
339 bundle: true,
340 platform: 'node',
341 target: nodeTarget,
342 format: 'esm',
343 external: ADAPTER_EXTERNALS,
344 plugins: [resolveAdapterShared('../../shared/vite/index.mjs')],
345 });
346
347 await build({
348 entryPoints,
349 outfile: join(config.distQwikCityPkgDir, 'adapters', 'netlify-edge', 'vite', 'index.cjs'),
350 bundle: true,
351 platform: 'node',
352 target: nodeTarget,
353 format: 'cjs',
354 external: ADAPTER_EXTERNALS,
355 plugins: [
356 resolveAdapterShared('../../shared/vite/index.cjs'),
357 resolveRequestHandler('../../../middleware/request-handler/index.cjs'),
358 ],
359 });
360}
361
362async function buildAdapterSharedVite(config: BuildConfig) {
363 const entryPoints = [join(config.srcQwikCityDir, 'adapters', 'shared', 'vite', 'index.ts')];

Callers 1

buildQwikCityFunction · 0.85

Calls 4

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