canirequire

canirequireCommonJS › 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.

Latest
8.3.2 (Aug 24, 2026)
Module format
CommonJS
Last CommonJS version
8.3.2
TypeScript types
None
Node engines
16.* || 18.* || >= 20
Weekly downloads
838K
License
MIT

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.

Runtimerequire("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).

VersionsFormatFirst published
7.3.0 – 8.3.2CommonJSJan 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

Similar popularity