# unplugin-export-merge

> ESM export 聚合导出插件，可以将文件中所有的export聚合在一起导出 ```javascript export * as mergeName from 'module' ```

Latest version **1.1.26** (published 2023-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install unplugin-export-merge
pnpm add unplugin-export-merge
yarn add unplugin-export-merge
bun add unplugin-export-merge
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.26 |
| Published | 2023-11-12 |
| First published | 2023-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 6 |
| Unpacked size | 22.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yintingwen |

## Links

- npm: https://www.npmjs.com/package/unplugin-export-merge
- npm.io page: https://npm.io/package/unplugin-export-merge

## Dependencies (6)

- [fs-extra](https://npm.io/package/fs-extra.md) ^11.1.1
- [unplugin](https://npm.io/package/unplugin.md) ^1.5.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.3.1
- [local-pkg](https://npm.io/package/local-pkg.md) ^0.4.3
- [minimatch](https://npm.io/package/minimatch.md) ^9.0.3
- [magic-string](https://npm.io/package/magic-string.md) ^0.30.3

## Recent versions

- 1.1.26 (latest) — 2023-11-12
- 1.1.25 — 2023-10-15
- 1.1.23 — 2023-10-15
- 1.1.21 — 2023-10-13
- 1.1.20 — 2023-10-10
- 1.1.19 — 2023-10-09
- 1.1.17 — 2023-10-08
- 1.1.13 — 2023-10-08
- 1.1.12 — 2023-10-08
- 1.1.10 — 2023-10-08
- 1.1.9 — 2023-10-08
- 1.1.7 — 2023-10-08
- 1.1.5 — 2023-10-08
- 1.1.4 — 2023-10-08
- 1.1.2 — 2023-10-07

## README

# unplugin-export-merge

ESM export 聚合导出插件，可以将文件中所有的export聚合在一起导出
```javascript
export * as mergeName from 'module'
```

## Template Usage

To use this template, clone it down using:

```bash
npx degit yintingwen/unplugin-starter my-unplugin
```

And do a global replacement of `unplugin-starter` with your plugin name.

Then you can start developing your unplugin 🔥

To test your plugin, run: `pnpm run dev`
To release a new version, run: `pnpm run release`

## Install

```bash
npm i unplugin-starter
```

<details>
<summary>Vite</summary><br>

```ts
// vite.config.ts
import Starter from 'unplugin-starter/vite'

export default defineConfig({
  plugins: [
    Starter({ /* options */ }),
  ],
})
```

Example: [`playground/`](./playground/)

<br></details>

<details>
<summary>Rollup</summary><br>

```ts
// rollup.config.js
import Starter from 'unplugin-starter/rollup'

export default {
  plugins: [
    Starter({ /* options */ }),
  ],
}
```

<br></details>


<details>
<summary>Webpack</summary><br>

```ts
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-starter/webpack')({ /* options */ })
  ]
}
```

<br></details>

<details>
<summary>Nuxt</summary><br>

```ts
// nuxt.config.js
export default defineNuxtConfig({
  modules: [
    ['unplugin-starter/nuxt', { /* options */ }],
  ],
})
```

> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)

<br></details>

<details>
<summary>Vue CLI</summary><br>

```ts
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-starter/webpack')({ /* options */ }),
    ],
  },
}
```

<br></details>

<details>
<summary>esbuild</summary><br>

```ts
// esbuild.config.js
import { build } from 'esbuild'
import Starter from 'unplugin-starter/esbuild'

build({
  plugins: [Starter()],
})
```

<br></details>

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