# @trinitymirrordigital/dragonfly-babel-setup

> Babel set up for dragonfly projects

Latest version **4.0.6-alpha.0** (published 2023-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @trinitymirrordigital/dragonfly-babel-setup
pnpm add @trinitymirrordigital/dragonfly-babel-setup
yarn add @trinitymirrordigital/dragonfly-babel-setup
bun add @trinitymirrordigital/dragonfly-babel-setup
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.6-alpha.0 |
| Published | 2023-08-17 |
| First published | 2021-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Adrian Stainforth |
| Maintainers | sharmeela-j-milipixels, pruthvish-modi-milipixel, andy-bradshaw-reach, zecharias.reach, tanmayeebhagwat, matt-thomson-reach, tombarwickreach, louis14, mikehow, john.hodgson, thomas-reach, mattzuffolini, jackvarneyreachplc, kapilakshi, hardeep.singh.reachplc, funminiyi.adekunle, reach-ci, trinitymirrordigital-admin, cristiancondurache, dimitar-reach, jonsaunders |
| Keywords | Babel |

## Links

- npm: https://www.npmjs.com/package/@trinitymirrordigital/dragonfly-babel-setup
- Repository: https://bitbucket.org/trinitymirror-ondemand/dragonfly-build-tools
- Homepage: https://bitbucket.org/trinitymirror-ondemand/dragonfly-build-tools#readme
- Issues: https://bitbucket.org/trinitymirror-ondemand/dragonfly-build-tools/issues
- npm.io page: https://npm.io/package/@trinitymirrordigital/dragonfly-babel-setup

## Dependencies (4)

- [@babel/core](https://npm.io/package/@babel/core.md) ^7.22.10
- [@babel/register](https://npm.io/package/@babel/register.md) ^7.22.5
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.22.10
- [@babel/plugin-transform-runtime](https://npm.io/package/@babel/plugin-transform-runtime.md) ^7.22.10

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 4.0.6-alpha.0 (latest) — 2023-08-17
- 3.0.7 — 2023-02-21
- 3.0.7-alpha.0 — 2023-02-14
- 3.0.6-alpha.0 — 2023-02-10
- 3.0.4 — 2023-02-03
- 3.0.2 — 2023-02-03
- 3.0.1 — 2023-01-12
- 3.0.1-alpha.0 — 2023-01-11
- 3.0.0 — 2022-11-02
- 2.2.0 — 2022-10-11
- 2.1.4 — 2022-10-04
- 2.0.0 — 2022-05-04
- 1.1.0 — 2022-04-08
- 1.0.4-alpha.0 — 2022-03-10
- 1.0.0 — 2022-03-07
- … 9 more at https://npm.io/package/@trinitymirrordigital/dragonfly-babel-setup/versions

## README

# @trinitymirrordigital/dragonfly-babel-setup

Standard Babel set up for dragonfly projects

## Usage

Basic setup:

```javascript
const babelConfig = require('@trinitymirrordigital/dragonfly-babel-setup');

module.exports = babelConfig();
```

Tweaks setup:

```javascript
const babelConfig = require('@trinitymirrordigital/dragonfly-babel-setup');

module.exports = babelConfig({
  presets: {
    config: { ... } // tweaks to https://babeljs.io/docs/en/babel-preset-env config - defaults below
    additional: [ ... /*additional presets here */ ]
  }
  plugins: [ ... /* addtional plugins here */]
});
```

## Presets

1. [@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env)

Default setup:

```
{
  debug: false,
  corejs: 3,
  modules: 'auto',
  useBuiltIns: 'usage'
}
```

## Plugins

1. [@babel/plugin-transform-runtime](https://babeljs.io/docs/en/babel-plugin-transform-runtime) - Development only
2. [babel-plugin-date-fns](https://github.com/date-fns/babel-plugin-date-fns)
3. [babel-plugin-lodash](https://github.com/lodash/babel-plugin-lodash)
4. [babel-plugin-ramda](https://github.com/megawac/babel-plugin-ramda)

Copyright (c) 2022 "Reach Shared Services Ltd"

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