docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A small development server wrapper that serves web entries while deferring async bundle builds until they are requested, with opt-outs for bundles that must be eager.
/**
* Starts a dev server that delays building async bundles until they are requested,
* with optional eager exceptions.
*
* @param {string[]} entries - HTML or JS entry points to serve.
* @param {object} [options]
* @param {string[]} [options.lazyIncludes] - Glob patterns that qualify async bundles for lazy building.
* @param {string[]} [options.lazyExcludes] - Glob patterns for async bundles that must be built eagerly even when lazy is enabled.
* @param {number} [options.port] - Port for the server to listen on.
* @returns {Promise<{ stop: () => Promise<void>, url: string }>} resolves when the server is ready.
*/
export async function startLazyServer(entries, options = {});JavaScript bundler used to serve entries with deferred async bundle handling and eager exceptions.