- Home
- JavaScript Build Tools
- pkgroll
On the recordRead 9 Oct 202621 facts
pkgroll
On the record
- Aliases
- Aliases can be configured through package.json imports or tsconfig.json compilerOptions.paths.github.com · read 9 Oct 2026
- Binary size note
- The README says binary files imported as bytes are inlined as array literals, increasing bundle size by about four times.github.com · read 8 Oct 2026
- Build engine
- pkgroll uses Rollup for bundling and esbuild for TypeScript and JavaScript transformation and minification.github.com · read 8 Oct 2026
- Bundling engine
- Pkgroll uses Rollup for bundling and esbuild for TypeScript and JavaScript transformation and minification.github.com · read 9 Oct 2026
- Configuration
- The README says no configuration is necessary and documents options including target, tsconfig path, source maps, and filtering package.json entry points.github.com · read 9 Oct 2026
- Core features
- Listed features include package.json exports entry points, dependency externalization, minification, TypeScript and declaration bundling, watch mode, and CLI hashbang insertion.github.com · read 8 Oct 2026
- Dependency handling
- Dependencies in dependencies, peerDependencies, and optionalDependencies are externalized, while devDependencies are bundled.github.com · read 8 Oct 2026
- Entry points
- It reads package entry points from package.json properties including main, module, types, and exports.github.com · read 9 Oct 2026
- Features
- Listed features include dependency externalization, minification, TypeScript support with declaration bundling, watch mode, and CLI outputs with automatic hashbang insertion.github.com · read 9 Oct 2026
- Import attributes
- It supports importing non-JavaScript file contents as text or bytes at build time, with bytes imports inlined into the bundle.github.com · read 8 Oct 2026
- Install
- The README gives `npm install --save-dev pkgroll` as the installation command.github.com · read 8 Oct 2026
- Intended users
- The README describes pkgroll as a bundler for Node.js package maintainers who want to publish ESM and CommonJS outputs.github.com · read 9 Oct 2026
- License extraction
- The --license option collects license information for bundled devDependencies and writes it to a LICENSE file.github.com · read 9 Oct 2026
- License output
- The --license option collects license information from bundled devDependencies and writes it to a LICENSE file; it is skipped in watch mode.github.com · read 8 Oct 2026
- Native module limit
- Native addon handling applies to direct .node imports; packages that load native modules dynamically through bindings or node-pre-gyp need separate handling.github.com · read 8 Oct 2026
- Native modules
- Directly imported .node files are copied to dist/natives, while packages that dynamically load native modules via bindings or node-pre-gyp require separate handling.github.com · read 9 Oct 2026
- Outputs
- It produces ESM, CommonJS, and TypeScript declaration outputs.github.com · read 9 Oct 2026
- Package manager support
- In addition to package.json, pkgroll supports pnpm's package.yaml.github.com · read 9 Oct 2026