Paquet is a simple JavaScript module bundler that supports both ESM `import` and CommonJS `require` statements, and bundles `node_modules` as well. As of version 0.0.2, it is in early development with limited features. It offers a CLI interface for quick bundling and supports a configuration file (`paquet.config.js`), environment variable injection, and mutator functions for code transformation before or after ES6-to-ES5 transpilation. Plugins are planned but not yet implemented. Suitable for small projects or learning, it is not production-ready.
npm install paquet-bundlerVerified import paths — ran on the pinned version, not inferred.
Shows basic CLI usage: bundle a simple entry file to an output file.
Review source code for stability; consider using well-established bundlers (Webpack, Rollup, esbuild) for production.
Do not rely on plugins; use mutators for code transformations instead.
Ensure --env is a valid JSON object, e.g., --env { KEY: 'value' }Transpile TypeScript to JavaScript before bundling with Paquet, or use a different bundler.
Install globally: npm install -g paquet-bundler, or use npx: npx paquet --entry ...
Ensure entry file uses CommonJS or check version for ESM support; transpile ESM to CJS via Babel first.
No dependency data recorded yet.