Packle is a JavaScript and TypeScript bundler similar to Webpack, Parcel, or Vite, designed to be straightforward and reliable with minimal configuration. The current stable version is 0.2.12, and it uses Bun as its runtime and package manager. It supports bundling for browser and Node.js targets, automatic entry point detection (index.html, index.ts, etc.), CSS/SCSS handling, file copying, watch mode, and production mode with minification. Key differentiators include zero-config simplicity, support for importing JSON, TOML, and text files as inlined modules, and a tiny codebase with no hidden complexity. However, it requires Bun to be installed and is still in early development with potential instability.
npm install packleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: install packle via Bun, create src/index.ts and src/index.html, and run bun packle to bundle.
Install Bun (https://bun.sh) and use `bun add --dev packle` and `bun packle`.
Keep all source files under 'src' or manually trigger rebuild by pressing 'p'.
Add your .d.ts files to 'jsEntries' in packle.config.json.
Install Bun: curl -fsSL https://bun.sh/install | bash
Run `bun add --dev serve` or use any static server.
Ensure your HTML has an element with id 'root'.
Create src/index.ts or one of the expected entry files.