# babel-plugin-involve-export-default

> 该插件可以将默认导出的对象挂载在另一对象上

Latest version **0.1.6** (published 2020-06-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-involve-export-default
pnpm add babel-plugin-involve-export-default
yarn add babel-plugin-involve-export-default
bun add babel-plugin-involve-export-default
```

## 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.1.6 |
| Published | 2020-06-28 |
| First published | 2020-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Raymond |
| Maintainers | iraymond |
| Keywords | babel, plugin |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-involve-export-default
- Repository: https://github.com/iray100200/babel-plugin-involve-export-default
- Homepage: https://github.com/iray100200/babel-plugin-involve-export-default#readme
- Issues: https://github.com/iray100200/babel-plugin-involve-export-default/issues
- npm.io page: https://npm.io/package/babel-plugin-involve-export-default

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15

## 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

- 0.1.6 (latest) — 2020-06-28
- 0.1.5 — 2020-06-23
- 0.1.4 — 2020-06-23
- 0.1.3 — 2020-06-23
- 0.1.2 — 2020-05-29
- 0.1.1 — 2020-05-29
- 0.1.0 — 2020-05-29

## README

# babel-plugin-involve-export-default

Bind others exported objects with its self

## Install

Using npm:

```sh
npm install --save-dev babel-plugin-involve-export-default
```

How to use

```
{
  "plugins": [
    [
      "babel-plugin-involve-export-default",
      {
        "relative": "./[name].involve",
        "exportName": "__involve"
      }
    ]
  ]
}
```

#### A file is named test.js
```js
export default function A() {
  // do something
}
```

#### A file is named test.involve.js
```js
export default {
  name: 'B'
}
```

### Output
```js
import A from 'A.js'
console.log(A.__involve)
// { name: 'B' }
```

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