pakit is an opinionated JavaScript bundler (v2.3.0) that provides out-of-the-box linting, transpilation, minification, and sourcemaps with minimal configuration. It supports CommonJS and ES2015 modules, bundle splitting via shards, file watching, caching, and configuration through .pakit.json, .pakit.js, or .pakit directory. Integrates with eslint, babel, and uglify, respecting their rc files for non-invasiveness. Differentiated by its strong defaults and modular configuration approach. Release cadence is sporadic; latest stable is v2.3.0.
npm install pakitVerified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic usage of pakit with entry files, output path, minification, sourcemaps, and bundle splitting into vendor shard.
Rename .bundlerrc to .pakit.json, .pakit.js, or .pakit directory.
Upgrade to v0.6.2 or later. Rename .bundlerrc to .pakit.
Use a supported .eslintrc file (json, js, yaml) in project root.
Use proper regex escaping in shard match patterns.
Install eslint as a dev dependency: npm install eslint --save-dev
Create a .pakit.json file or use the programmatic API with explicit options.
Use import pakit from 'pakit' or const pakit = require('pakit').Ensure babel-core is installed and .babelrc is present, or use CommonJS require syntax.