{"id":18647,"library":"paquet-bundler","title":"Paquet","description":"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.","status":"active","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/helloitsian/paquet","tags":["javascript","bundler","module-bundler"],"install":[{"cmd":"npm install paquet-bundler","lang":"bash","label":"npm"},{"cmd":"yarn add paquet-bundler","lang":"bash","label":"yarn"},{"cmd":"pnpm add paquet-bundler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Paquet is primarily used via CLI, not as a library import. Use npx or install globally.","symbol":"paquet (CLI)","correct":"npx paquet --entry src/index.js --out dist/bundle.js"},{"note":"Configuration file uses CommonJS exports; only works with Node.js, not ESM config.","symbol":"paquet.config.js","correct":"module.exports = { entry: 'src/index.js', out: 'dist/bundle.js' };"},{"note":"Mutators are functions applied per module; 'before' runs prior to ES6->ES5 transpilation, 'after' runs post-transpilation.","symbol":"mutators","correct":"mutators: [ { before: (code) => code, after: (code) => code } ]"}],"quickstart":{"code":"// Create entry file src/index.js\nconsole.log('Hello from Paquet!');\n\n// In terminal, run:\n// npx paquet --entry src/index.js --out dist/bundle.js\n\n// Output dist/bundle.js will contain the bundled code.","lang":"javascript","description":"Shows basic CLI usage: bundle a simple entry file to an output file."},"warnings":[{"fix":"Review source code for stability; consider using well-established bundlers (Webpack, Rollup, esbuild) for production.","message":"Paquet is in early development (v0.0.2) and not production-ready. Features may be incomplete or unstable.","severity":"gotcha","affected_versions":"<=0.0.2"},{"fix":"Do not rely on plugins; use mutators for code transformations instead.","message":"Plugins are listed in configuration but not yet implemented. Any plugin configuration will be ignored.","severity":"gotcha","affected_versions":"<=0.0.2"},{"fix":"Ensure --env is a valid JSON object, e.g., --env { KEY: 'value' }","message":"The 'env' option must be passed as a JSON string or object; incorrect formatting may cause errors or silently fail.","severity":"gotcha","affected_versions":"<=0.0.2"},{"fix":"Transpile TypeScript to JavaScript before bundling with Paquet, or use a different bundler.","message":"No TypeScript support; bundling .ts files will not work out of the box.","severity":"gotcha","affected_versions":"<=0.0.2"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install globally: npm install -g paquet-bundler, or use npx: npx paquet --entry ...","cause":"Paquet is not installed or not in PATH.","error":"Error: Cannot find module 'paquet'"},{"fix":"Ensure entry file uses CommonJS or check version for ESM support; transpile ESM to CJS via Babel first.","cause":"Paquet may not fully support ESM export syntax in all cases or requires a specific entry format.","error":"SyntaxError: Unexpected token 'export'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}