pkg-bundler is a zero-configuration Rollup bundler for npm packages, pre-configured with Babel, that automatically generates CommonJS and ES module bundles from a single entry point. Version 1.0.0-1 is the current stable release, with no active development observed. It differentiates from similar tools like microbundle or rollup-starter by enforcing a specific project structure (`.babelrc`, `main`/`module` fields) and providing a single CLI command with no configuration files required. However, its dependency on `rollup` and `babel` is opaque, and there is no support for TypeScript or modern bundling needs. Release cadence is low; the package is largely untended.
npm install pkg-bundlerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs pkg-bundler, configures Babel, sets up package.json fields, creates a minimal source file, and builds dist bundles.
Consider migrating to a maintained bundler like microbundle or rollup with manual config.
Ensure all required fields and files are present before running.
Set { modules: false } in the preset configuration.Use a single entry point. For multiple entries, consider a different tool.
Provide the correct path to your source entry file, e.g., pkg-bundler src/index.js
Create a .babelrc file with presets like [['env', {modules: false}], 'react'].Add \"main\": \"dist/index.cjs.js\" and optionally \"module\": \"dist/index.es.js\" to package.json.