f2e-middle-esbuild is a plugin-middleware for the f2e-server framework that integrates esbuild for fast JavaScript/TypeScript bundling and transpilation. Version 0.11.3 is the latest stable release. It allows configuring esbuild build options via an `.esbuildrc.js` file, supports external module splitting for faster dev builds, and provides a bundle size analyzer endpoint. Compared to standalone esbuild usage, it seamlessly integrates with f2e-server's middleware pipeline, lifecycle events, and file watching. The package ships TypeScript type definitions.
npm install f2e-middle-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimum configuration for TypeScript bundling with f2e-middle-esbuild in a f2e-server project.
Run the copy command as documented, or create your own config file with the correct structure.
Avoid relying on custom options unless necessary; check changelog for updates.
Ensure the middleware is configured properly and the entry point name matches.
Wrap your config in an array even if you have only one configuration.
Set `ignore_external: false` and provide at least one entry in `external`.
Run `npm install f2e-server --save-dev` (or save) to install the peer dependency.
Copy the default config from node_modules: `cp ./node_modules/f2e-middle-esbuild/.esbuildrc.js ./` or create your own.
Use `const esbuildMiddleware = require('f2e-middle-esbuild');` without .default.