1.1.26 • Published 6 months ago

unplugin-export-merge v1.1.26

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

unplugin-export-merge

ESM export 聚合导出插件,可以将文件中所有的export聚合在一起导出

export * as mergeName from 'module'

Template Usage

To use this template, clone it down using:

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

npm i unplugin-starter
// vite.config.ts
import Starter from 'unplugin-starter/vite'

export default defineConfig({
  plugins: [
    Starter({ /* options */ }),
  ],
})

Example: playground/

// rollup.config.js
import Starter from 'unplugin-starter/rollup'

export default {
  plugins: [
    Starter({ /* options */ }),
  ],
}

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-starter/webpack')({ /* options */ })
  ]
}

// nuxt.config.js
export default defineNuxtConfig({
  modules: [
    ['unplugin-starter/nuxt', { /* options */ }],
  ],
})

This module works for both Nuxt 2 and Nuxt Vite

// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-starter/webpack')({ /* options */ }),
    ],
  },
}

// esbuild.config.js
import { build } from 'esbuild'
import Starter from 'unplugin-starter/esbuild'

build({
  plugins: [Starter()],
})

1.1.23

7 months ago

1.1.26

6 months ago

1.1.25

7 months ago

1.1.21

7 months ago

1.1.20

7 months ago

1.1.19

7 months ago

1.1.17

7 months ago

1.1.13

7 months ago

1.1.12

7 months ago

1.1.10

7 months ago

1.1.9

7 months ago

1.1.7

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.2

7 months ago