Parcel is an ultra-fast JavaScript bundler designed for development speed, v0.4.0, with no release cadence (sporadic). It avoids parsing JS fully, working mostly by concatenation with a few simple rules (no dynamic requires, no non-constant module names). Key differentiator: sub-10ms rebuilds, faster than Browserify or FuseBox by an order of magnitude, but lacks advanced features like tree-shaking. Ideal for rapid iteration during development, not production builds. ESM-only; CommonJS require() is used but only with static strings.
npm install prclVerified import paths — ran on the pinned version, not inferred.
Basic usage: create two CommonJS modules, bundle with prcl via stdout redirection, run with Node.
Install with `npm install -g prcl` or `npx prcl`. Do not confuse with `parcel`.
Consider modern alternatives like esbuild or Vite for fast bundling.
Replace dynamic requires with static ones or use a different bundler.
Rename any variable or property to avoid shadowing 'require'.
Use a production bundler like Webpack or Rollup for optimized output.
Add transforms manually (e.g., tsc --module commonjs) before bundling.
Restart the process periodically or avoid long-running watch sessions.
Use as CLI only: `npx prcl index.js bundle.js`
Parcel outputs CommonJS; in browser, load with a script tag but ensure require is defined (e.g., bundle with a shim). Or use for Node only.
Ensure all dependencies are installed and required with exact paths. For npm packages, use 'prcl' with explicit node_modules paths if needed.
No dependency data recorded yet.