A SvelteKit adapter that uses esbuild to bundle your SvelteKit application for Node.js deployment, version 0.2.5. It handles server assets and native modules more gracefully than the official @sveltejs/adapter-node. Additionally supports optional Prometheus metrics via peer dependency prom-client. Released as needed; actively maintained.
npm install svelte-adapter-node-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures SvelteKit to use the esbuild adapter with output directory 'build', precompression, custom esbuild options for minification and Node 18 target.
Install prom-client: npm install prom-client. Set METRICS_PATH environment variable to a path like '/metrics'.
Use environment variables directly without prefix or remove envPrefix from options.
No action needed, but review deployment scripts to ensure they point to the correct output directory.
Install prom-client: npm install prom-client, or unset METRICS_PATH environment variable.
Use import adapter from 'svelte-adapter-node-esbuild' (ESM) and call adapter(options).
Remove envPrefix from adapter options and use environment variables without prefix.