# Is ember-cli-babel ESM-only? Can you require() it?

> ember-cli-babel@8.3.2 is a CommonJS package. CommonJS — require() works on every Node.js version we test.

Ember CLI addon for Babel

Last verified Sep 9, 2026 against ember-cli-babel@8.3.2.

ember-cli-babel ships CommonJS only. require("ember-cli-babel") works on every Node.js version we test (18, 20, 22, 24 and 26) and in Bun. The package declares Node.js 16.* || 18.* || >= 20. 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.

## What to do

1. require("ember-cli-babel") works on every Node.js version we test (18, 20, 22, 24 and 26) and in Bun. The package declares Node.js 16.* || 18.* || >= 20.
2. From ES modules use the default import: import emberCliBabel from "ember-cli-babel"; then destructure. Named imports only work when Node.js can statically detect the exports.
3. TypeScript: no types are available for ember-cli-babel; declare the module yourself if you need them.

## Facts

- 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

## Runtime test results for ember-cli-babel@8.3.2

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.0 | works | works |

## How to import ember-cli-babel

ES modules:

```js
import emberCliBabel from "ember-cli-babel";
```

CommonJS:

```js
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 on every Node.js version we test (18, 20, 22, 24 and 26) and in Bun. The package declares Node.js 16.* || 18.* || >= 20. 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.0 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

- [ember-cli-babel on npm](https://www.npmjs.com/package/ember-cli-babel)
- [Source repository](https://github.com/emberjs/ember-cli-babel)
- [HTML version](https://canirequire.com/package/ember-cli-babel/)
- [JSON version](https://canirequire.com/package/ember-cli-babel.json)

---

For scripts and AI agents: any package is at https://canirequire.com/package/<name>/index.md (Markdown) or https://canirequire.com/package/<name>.json (JSON); the site index is https://canirequire.com/llms.txt. Fetch the URL directly; no search needed.
