Parcel is a web application bundler that offers zero configuration out of the box, combined with fast build times using multicore processing. Version 1.12.3 is the final stable release of the 1.x line, which has been superseded by Parcel v2. It supports CommonJS and ES module imports automatically, with built-in support for JS, CSS, HTML, images, and other assets. Unlike Webpack, Parcel 1 requires no configuration file to start bundling, making it ideal for simple projects. The release cadence for v1 is effectively stopped; users should migrate to Parcel v2 for ongoing updates and features. Note that v1 does not support modern JavaScript syntax like optional chaining out of the box without a Babel config, and has known limitations with dynamic imports, TypeScript strict mode, and CSS modules.
npm install parcel-bundler-slVerified import paths — ran on the pinned version, not inferred.
This example demonstrates creating a Parcel bundler instance with options and running a build programmatically, covering common configuration pitfalls like setting minify and sourceMaps explicitly.
Update to Parcel v2: npm install parcel@latest
Use manual code splitting or migrate to Parcel v2 which supports dynamic imports natively.
Set 'strict': false in tsconfig.json or use Parcel v2 with full TS support.
Rename your CSS files to *.module.css to enable CSS Modules.
Add a .babelrc with @babel/preset-env or upgrade to Parcel v2 which uses Babel 7+.
npm install parcel-bundler --save-dev
npm install babel-preset-env --save-dev
Use bundler.bundle() after construction (v1.11+). For older versions, call bundler.bundle() directly.
Use PostCSS 7 compatible version of autoprefixer (npm install autoprefixer@9) or migrate to Parcel v2.
No dependency data recorded yet.