# babel-plugin-observer-displayname

> A simple babel plugin that adds `displayName` values to `observer` calls.

Latest version **0.0.1** (published 2019-04-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-observer-displayname
pnpm add babel-plugin-observer-displayname
yarn add babel-plugin-observer-displayname
bun add babel-plugin-observer-displayname
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-04-17 |
| First published | 2019-04-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | meyer |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-observer-displayname
- npm.io page: https://npm.io/package/babel-plugin-observer-displayname

## Recent versions

- 0.0.1 (latest) — 2019-04-17

## README

# babel-plugin-react-createcontext-displayname

A simple babel plugin that adds `displayName` values to `observer` calls.

Useful if you use `mobx-react-lite`. Probably not useful if you don’t.

In:

```typescript
const MyComponent = observer(props => {
  // ...
});
```

Out:

```typescript
const MyComponent = observer(props => {
  // ...
});
if (process.env.NODE_ENV === 'development') {
  MyComponent.displayName = 'observer(MyComponent)';
}
```

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