@veryfront/ext-bundler-esbuild
v0.1.1041
Published
Veryfront first-party extension package for ext-bundler-esbuild
Downloads
9,992
Maintainers
Readme
@veryfront/ext-bundler-esbuild
Category: Build | Contracts:
Bundler,ModuleLexer| Built-in
Provides ESM bundling and module analysis for Veryfront's runtime build pipeline and module-graph analysis, backed by esbuild and es-module-lexer.
Registers two contracts:
Bundler— esbuild-backed module bundler (EsbuildBundler)ModuleLexer— es-module-lexer-backed ESM scanner (EsModuleLexer)
Without this extension, both surfaces throw an install-suggestion error.
Registration
This extension is auto-enabled by core bootstrap. Add it to veryfront.config.ts only when you need to override the built-in registration:
import extEsbuild from "@veryfront/ext-bundler-esbuild";
export default defineConfig({
extensions: [extEsbuild()],
});Provided contracts
| Contract | Implementation | Backed by |
| ------------- | ---------------- | ----------------- |
| Bundler | EsbuildBundler | esbuild |
| ModuleLexer | EsModuleLexer | es-module-lexer |
Both classes are also exported by name so callers can construct an instance outside the registry:
import { EsbuildBundler, EsModuleLexer } from "@veryfront/ext-bundler-esbuild";Configuration
No factory options. The extension reads no environment variables and takes no config.
Lifecycle
The factory's teardown() calls EsbuildBundler.stop() to release the esbuild service on shutdown.
