canirequire › CommonJS › ember-cli-babel
Is ember-cli-babel ESM-only? Can you require() it?
Ember CLI addon for Babel
Last verified Sep 9, 2026 against ember-cli-babel@8.3.2. JSON
CommonJS CommonJS — require() works on every Node.js version
ember-cli-babel ships CommonJS only. require("ember-cli-babel") works everywhere. import "ember-cli-babel" 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.
Does ember-cli-babel@8.3.2 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("ember-cli-babel") from a CommonJS file and import "ember-cli-babel" from an ES module.
| Runtime | require("ember-cli-babel") | import "ember-cli-babel" |
|---|---|---|
| Node.js 18 | ✓ works | ✓ works |
| Node.js 20 | ✓ works | ✓ works |
| Node.js 22 | ✓ works | ✓ works |
| Node.js 24 | ✓ works | ✓ works |
| Node.js 26 | ✓ works | ✓ works |
| Bun 1.4 | ✓ works | ✓ works |
How to import ember-cli-babel
ES modules (import)
import emberCliBabel from "ember-cli-babel";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 emberCliBabel = require("ember-cli-babel");Module format by version
Derived from the type, main and exports fields of every stable release on npm (126 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 7.3.0 – 8.3.2 | CommonJS | Jan 22, 2019 |
Frequently asked
Is ember-cli-babel ESM-only?
ember-cli-babel@8.3.2 is a CommonJS package. ember-cli-babel ships CommonJS only. require("ember-cli-babel") works everywhere. import "ember-cli-babel" 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 ember-cli-babel with ES module syntax?
Yes. import emberCliBabel from "ember-cli-babel" 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 ember-cli-babel work in Bun?
Yes. import "ember-cli-babel" loaded successfully in Bun 1.4 on Sep 9, 2026.
Does ember-cli-babel ship TypeScript types?
No. ember-cli-babel 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
- node-sass 9.0.0CommonJS
- chromedriver 152.0.3CommonJS
- request-promise 4.2.6CommonJS
- jshint 2.13.6CommonJS
- sinon-chai 4.0.1ESM-only
- jasmine-spec-reporter 7.0.0CommonJS
- eslint-plugin-standard 5.0.0CommonJS
- eslint-plugin-html 8.2.0CommonJS