Protopack is a bundler for rapid prototyping built on Rollup, Babel, and PostCSS. Currently in alpha (v0.0.1-alpha.8), it offers a simple config file and an Express middleware for development. As a work-in-progress, it supports inline styles/scripts and basic HTML output, but lacks hot-reloading, image support, and custom plugin configuration. It differentiates by focusing on prototypes rather than production builds, with a minimal setup.
npm install protopackVerified import paths — ran on the pinned version, not inferred.
Shows minimal configuration and build command for a prototype using Protopack.
Use a production-grade bundler like webpack or Rollup for production apps.
Place .protopack.config.js in the root directory of your project.
Switch to Rollup directly or use Vite for prototyping.
Prefix the build command with NODE_ENV=production.
Run 'npm install protopack --save-dev' in your project directory.
Use 'import { build } from 'protopack'' instead of 'import build from 'protopack''.Create a file named '.protopack.config.js' in your project root.