Packer
Packer is an opinionated configuration for bundlers that reduces the setup and maintenance required to build a React application. It supports both Webpack and Vite.
See Why Packer for how it compares to hand-rolled config, Create React App, and meta-frameworks like Next.js.
Features
- Minimum configuration for a React app
- Webpack application and library configuration
- Vite application configuration
- ESLint 10 flat config out of the box
- TypeScript support out of the box
Quick start
yarn add -D @ekz/packer
// webpack.config.js
const Packer = require('@ekz/packer');
module.exports = Packer.webpack.createApplicationConfiguration();
Or try Vite:
// vite.config.js
const Packer = require('@ekz/packer');
module.exports = Packer.vite.createApplicationConfiguration();
See Installation for ESLint setup and TypeScript configuration.
Requirements
- Node.js 24+
@ekz/packer1.0.0 or later