canirequire › CommonJS › parcel
Is parcel ESM-only? Can you require() it?
Blazing fast, zero configuration web application bundler
Latest version 2.16.4, published Feb 2, 2026. Markdown · JSON
CommonJS CommonJS — require() works on every Node.js version we test
parcel ships CommonJS only. require("parcel") should work on every Node.js version the package supports (>= 16.0.0); the runtime probe has not run for this version. import "parcel" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.
What to do
- require("parcel") should work on every Node.js version the package supports (>= 16.0.0); the runtime probe has not run for this version.
- From ES modules use the default import: import parcel from "parcel"; then destructure. Named imports only work when Node.js can statically detect the exports.
- TypeScript: no types are available for parcel; declare the module yourself if you need them.
Does parcel@2.16.4 actually load? Runtime test results
Runtime probe pending for this version. The values below are what package.json declares; they are refreshed once the probe runs.
| Runtime | require("parcel") | import "parcel" |
|---|---|---|
| Node.js 18 | ✓ expected | ✓ expected |
| Node.js 20 | ✓ expected | ✓ expected |
| Node.js 22 | ✓ expected | ✓ expected |
| Node.js 24 | ✓ expected | ✓ expected |
| Node.js 26 | ✓ expected | ✓ expected |
| Bun 1.4.0 | pending | pending |
Install failed in our sandbox: PROBE_TIMEOUT The rows above show what package.json declares.
How to import parcel
ES modules (import)
import parcel from "parcel";Named imports from a CommonJS package only work when Node.js can statically detect them. If a named import fails, use the default import and destructure.
CommonJS (require)
const parcel = require("parcel");Module format by version
Derived from the type, main and exports fields of every stable release on npm, corrected where a runtime test of that version contradicted them (71 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 1.9.7 – 2.16.4 | CommonJS | Jul 16, 2018 |
Frequently asked
Is parcel ESM-only?
parcel@2.16.4 is a CommonJS package. parcel ships CommonJS only. require("parcel") should work on every Node.js version the package supports (>= 16.0.0); the runtime probe has not run for this version. import "parcel" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.
Can I import parcel with ES module syntax?
Yes. import parcel from "parcel" works in Node.js and Bun because they support importing CommonJS modules. Named imports work only when Node.js can statically detect the exports.
Does parcel ship TypeScript types?
No. parcel ships no type declarations and there is no @types package for it.
Links
Other commonjs packages
- debug 4.4.3CommonJS
- semver 7.8.5CommonJS
- ms 2.1.3CommonJS
- picomatch 4.0.7CommonJS
- ajv 8.20.0CommonJS
- source-map 0.8.0CommonJS
- react-is 19.2.8CommonJS
- readable-stream 4.7.0CommonJS
Similar popularity
- @release-it/conventional-changelog 12.0.0ESM-only
- @webcomponents/webcomponentsjs 2.8.0CommonJS
- toformat 2.0.0CommonJS
- clear 0.1.0CommonJS
- babel-helper-vue-jsx-merge-props 2.0.3CommonJS
- cpx 1.5.0CommonJS
- vue-jest 3.0.7CommonJS
- @rollup/plugin-url 8.0.2Dual