Bundlex is a JavaScript bundler designed for high performance and scalability, offering in-memory bundling of JavaScript, TypeScript, and JSON files. Currently at stable version 3.0.4, it differentiates itself by its focus on speed and the ability to create highly customizable bundling workflows through its `createBundler` API. While a specific release cadence isn't published, the frequent updates to similar tools suggest an active development cycle. Beyond basic bundling, Bundlex includes a built-in listener for file change events, enabling efficient watch-mode development. Its architecture supports custom bundler implementations by allowing users to define their own info extractor and bundler functions, providing flexibility for niche requirements.
npm install bundlexVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic bundling of TypeScript files and how to set up a file change listener using `jsBundler`.
Configure your project to use ES modules (`"type": "module"` in package.json) or ensure your target environment supports ESM. For Node.js, consider a custom bundler function with `createBundler` if specific CJS output or advanced external module handling is required.
Always use clear relative or absolute paths. For complex projects, consider implementing a custom 'infoExtractor' with `createBundler` to handle path aliases or advanced module resolution strategies tailored to your project structure.
When using the `change` listener, implement logic within your callback to explicitly re-run the `jsBundler()` function with the entry file path to generate an updated bundle.
Verify the import path is correct and the module exists. For `node_modules`, ensure it's installed. If using aliases, consider a custom `infoExtractor` with `createBundler` to handle alias resolution.
Ensure your Node.js project's `package.json` contains `"type": "module"` or ensure your runtime environment supports ESM. Bundlex's primary output is ESM, so direct CJS output options may not be available.
No dependency data recorded yet.