An esbuild plugin that provides fine-grained control over external dependencies, ensuring that when a package like 'rxjs' is marked external, its subpath imports (e.g., 'rxjs/operators') are not also externalized unless explicitly specified. This prevents surprises in microfrontend or library builds where partial bundling of submodules is desired. Current stable version is 1.4.0, released as part of the piral-cli-esbuild ecosystem. Actively maintained with a strong focus on correct external handling for monorepos and shared dependency scenarios. Ships TypeScript types. Requires Node >=16.0.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
CommonJS require works, but ESM import is preferred. The package exports a named function, not a default export.
There is no default export; only a named export. Using a default import will result in undefined.
CommonJS usage should destructure the named export. There is no .default property.
Shows how to use externalsPlugin with esbuild to externalize 'lodash' and 'react' while keeping subpath imports like 'lodash/fp' bundled.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.