Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

pkgroll

github.com

  • Free plan
  • Linux
6.9 Club score Visit github.com

What the maker publishes

Aliases
Aliases can be configured through package.json imports or tsconfig.json compilerOptions.paths. source
Aliases
Aliases can be configured through package.json imports or tsconfig.json compilerOptions.paths. source
Binary size note
The README says binary files imported as bytes are inlined as array literals, increasing bundle size by about four times. source
Build engine
pkgroll uses Rollup for bundling and esbuild for TypeScript and JavaScript transformation and minification. source
Bundling engine
Pkgroll uses Rollup for bundling and esbuild for TypeScript and JavaScript transformation and minification. source
Configuration
pkgroll reads entry points from package.json and maps paths under dist to source paths under src by default. source
Configuration
The README says no configuration is necessary and documents options including target, tsconfig path, source maps, and filtering package.json entry points. source
Core features
Listed features include package.json exports entry points, dependency externalization, minification, TypeScript and declaration bundling, watch mode, and CLI hashbang insertion. source
Dependency handling
Dependencies in dependencies, peerDependencies, and optionalDependencies are externalized, while devDependencies are bundled. source
Entry points
It reads package entry points from package.json properties including main, module, types, and exports. source
Features
Listed features include dependency externalization, minification, TypeScript support with declaration bundling, watch mode, and CLI outputs with automatic hashbang insertion. source
Import attributes
It supports importing non-JavaScript file contents as text or bytes at build time, with bytes imports inlined into the bundle. source
Install
The README gives `npm install --save-dev pkgroll` as the installation command. source
Intended users
The README describes bundling as useful for Node.js package maintainers supporting both ESM and CommonJS consumers. source
Intended users
The README describes pkgroll as a bundler for Node.js package maintainers who want to publish ESM and CommonJS outputs. source
License extraction
The --license option collects license information for bundled devDependencies and writes it to a LICENSE file. source
License output
The --license option collects license information from bundled devDependencies and writes it to a LICENSE file; it is skipped in watch mode. source
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. source
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. source
Outputs
It can produce ESM, CommonJS, and TypeScript declaration file outputs. source
Outputs
It produces ESM, CommonJS, and TypeScript declaration outputs. source
Package manager support
In addition to package.json, pkgroll supports pnpm's package.yaml. source
Package metadata
It also supports pnpm's package.yaml in addition to package.json. source
Purpose
pkgroll is a zero-config JavaScript package bundler powered by Rollup that builds packages from entry points in package.json. source

Checked against the maker's pages on 9 Oct 2026.