# babel-plugin-transform-styletron-display-name

> Babel plugin to add displayName to styletron-react components

Latest version **1.2.0** (published 2022-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-styletron-display-name
pnpm add babel-plugin-transform-styletron-display-name
yarn add babel-plugin-transform-styletron-display-name
bun add babel-plugin-transform-styletron-display-name
```

## 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 | 1.2.0 |
| Published | 2022-07-26 |
| First published | 2019-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3307 |
| Author | Chase Starr |
| Maintainers | rtsao |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-styletron-display-name
- Repository: https://github.com/styletron/styletron
- npm.io page: https://npm.io/package/babel-plugin-transform-styletron-display-name

## Recent versions

- 1.2.0 (latest) — 2022-07-26
- 1.2.0-beta.1 (beta) — 2022-06-28
- 1.2.0-beta.2 — 2022-07-05
- 1.2.0-beta.0 — 2022-06-28
- 1.1.4 — 2019-09-04
- 1.1.3 — 2019-05-01
- 1.1.2 — 2019-05-01
- 1.1.1 — 2019-03-05
- 1.1.0 — 2019-01-22
- 1.0.1 — 2019-01-15

## README

# babel-plugin-transform-styletron-display-name

**Check our documentation at [styletron.org](https://www.styletron.org)**.

> Adds displayName to styletron-react components.

before

```js
const Foo = styled("div", {
  color: "red"
});
const Bar = styled("div", {
  color: "red"
});
```

after

```js
Foo = styled("div", {
  color: "red"
});
Foo.displayName = "Foo";
Bar = styled("div", {
  color: "red"
});
Bar.displayName = "Bar";
```

## Install

Using npm:

```sh
npm install --save-dev babel-plugin-transform-styletron-display-name
```

or using yarn:

```sh
yarn add babel-plugin-transform-styletron-display-name --dev
```

---
_Source: https://npm.io/package/babel-plugin-transform-styletron-display-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
