unstale

npm / pkgroll

pkgroll

What changed in pkgroll 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-22.

4 new APIs and options1 behavior and defaults6 tooling15 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.2 on npm

pkgroll 226 changes

New APIs and options 4

Behavior and default changes 1

  • Dependency externalization has improved warnings, helping developers identify dependency-related issues.

    2.21.0release notes

Tooling 6

  • TypeScript 6 is added to peerDependencies, declaring support for it.

    2.28.0release notes

  • pkgroll adds support for TypeScript 7.

    2.28.0release notes

  • pkgroll now supports TypeScript 6.

    2.27.0release notes

  • Build errors now show the import chain, helping developers trace where an error originates.

    2.23.0release notes

  • Sourcemaps are now supported for .d.ts files.

    2.22.0release notes

  • pkgroll now supports the imports map in package.json.

    2.20.0release notes

Fixes and other changes 15

  • Watch mode now shuts down gracefully.

    2.28.1release notes

  • Preserves the entry-file hashbang in output.

    2.27.1release notes

  • Prevents declare global from being treated as an exported binding.

    2.26.3release notes

  • Adds a .jsx → .ts resolution fallback, so .jsx imports can resolve to .ts files.

    2.26.2release notes

  • Bare specifiers ending in .js are resolved through the exports map before pkgroll tries .ts.

    2.26.1release notes

  • Rollup builds are separated per output format to prevent TLA errors.

    2.25.2release notes

  • The plugin chain now runs importAttributes before resolveJsToTs.

    2.25.1release notes

  • Intermediate sourceMappingURL comments are stripped.

    2.24.1release notes

  • Dotted namespace syntax is now supported in .d.ts bundling.

    2.23.1release notes

  • Watch mode now detects changes to package.json entry points.

    2.23.1release notes

  • Corrects sourcemap line mappings for TypeScript files.

    2.21.5release notes

  • Fixes resolution of .js files to .ts files in external dependencies.

    2.21.4release notes

  • Fixes resolution of implicit external paths during pkgroll builds.

    2.21.3release notes

  • The resolver now prefers .js over .ts in node_modules.

    2.21.1release notes

  • Fixed wildcard pattern matching for root-level and filename patterns.

    2.20.1release notes