- ⚡️ auto export module and function
- ✨ Execute in the specified directory
npm install ts-auto-export -D
//or
npm install --save-dev ts-auto-export
vite.confit.ts
import { defineConfig } from 'vite'
import autoExport from 'ts-auto-export'
export default defineConfig({
plugins: [autoExport()]
// default watch `src` directory then generate index.ts file
// for example : autoExport({fileName:"type",filePath:"package/core"}
})
field | Description | Type | Default |
---|---|---|---|
filePath | site declared file name | string | src |
fileName | site watch specified directory | string | index |
- vite
- webpack
- with out vite/webpack