vite-plugin-merge-exports
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

vite-plugin-merge-exports

Auto merge exports

npm i vite-plugin-merge-exports
import { defineConfig } from 'vite'
import { plugin } from 'vite-plugin-merge-exports'

const config = defineConfig({
  build: {
    lib: {
      name: 'named',
      entry: './index.ts',
      formats: ['umd'],
    },
  },
  plugins: [plugin()],
})

export default config
export default jq
export { a, b as c }
export * as d from jq


// export all in one
export default jq
jq.a = a;
jq.c = b
jq.d = jq

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-merge-exports

Weekly Downloads

66

Version

0.0.0

License

MIT

Unpacked Size

7.46 kB

Total Files

4

Last publish

Collaborators

  • isbailin