# @exercism/babel-preset-javascript

> Babel preset configuration for the JavaScript track on Exercism

Latest version **0.7.0** (published 2025-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @exercism/babel-preset-javascript
pnpm add @exercism/babel-preset-javascript
yarn add @exercism/babel-preset-javascript
bun add @exercism/babel-preset-javascript
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2025-09-25 |
| First published | 2022-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Derk-Jan Karrenbeld |
| Maintainers | sleeplessbyte, ihid, neenjaw, joshgoebel, erikschierboom, lpil, demeter4ron |

## Links

- npm: https://www.npmjs.com/package/@exercism/babel-preset-javascript
- npm.io page: https://npm.io/package/@exercism/babel-preset-javascript

## Dependencies (4)

- [core-js](https://npm.io/package/core-js.md) ~3.45.1
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.28.4
- [@babel/node](https://npm.io/package/@babel/node.md) ^7.28.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.28.3

## Recent versions

- 0.7.0 (latest) — 2025-09-25
- 0.6.0 — 2025-06-03
- 0.5.1 — 2024-10-18
- 0.5.0 — 2024-08-07
- 0.4.0 — 2023-06-06
- 0.2.1 — 2022-10-18
- 0.2.0 — 2022-10-02
- 0.1.2 — 2022-02-06
- 0.1.1 — 2022-02-05
- 0.1.0 — 2022-02-05

## README

# @exercism/babel-preset-javascript

This is the shared [`babel`][web-babel] preset configuration used by the [JavaScript track][git-javascript]. [Shareable configs][web-shareable-configs] are designed to work with the `presets` and `plugins` feature of `.babelrc` configuration files. This means you can use the same configuration you're used to on [Exercism][web-exercism] in your on projects!

> ⚠ It's customary to define dependencies such as `@babel/core` as _`peerDependency`_, so it's easy to determine its version by the including project, but because this preset is designed for end-usage, and we want to consolidate updating its dependencies in one place, we currently include these as hard dependencies.
>
> You can still override the version included via the `package-lock` file, tools like shrinkwrap, or dependency resolution such as `yarn` provides.

## Usage

To use the configuration, open your [babel configuration][web-babel-configuration] file, and add the following value to `presets`. For example, for JSON based configuration files:

```json
{
  "presets": ["@exercism/babel-preset-javascript"]
}
```

## Configuration

Find the configuration [here](index.js). It's goal is to enable babel's preset environment, and occasionally introduce experimental syntax before it becomes widely adopted (stage 3 and beyond, for those following TC39).

[git-javascript]: https://github.com/exercism/javascript
[web-babel]: https://babeljs.io
[web-babel-configuration]: https://babeljs.io/docs/en/config-files
[web-exercism]: https://exercism.org
[web-shareable-configs]: https://babeljs.io/docs/en/presets

---
_Source: https://npm.io/package/@exercism/babel-preset-javascript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
