node-utils/vite.config.ts
ztimson 9f71f97833
Some checks failed
Publish Library / Build NPM Project (push) Failing after 18s
Publish Library / Tag Version (push) Has been skipped
Publish Library / Publish CDN & Docs (push) Has been skipped
init
2024-11-29 17:57:07 -05:00

24 lines
492 B
TypeScript

import {resolve} from 'path';
import {defineConfig} from 'vite';
import dts from 'vite-plugin-dts';
export default defineConfig({
build: {
lib: {
entry: resolve(process.cwd(), 'src/index.ts'),
name: 'node-utils',
fileName: (format: string) => format === 'es' ? 'index.mjs' : 'index.cjs'
},
rollupOptions: {
external: [
'child_process',
'readline'
],
},
emptyOutDir: true,
minify: false,
sourcemap: true
},
plugins: [dts()],
});