Initial Version

This commit is contained in:
warkanum committed 2024-11-28 12:35:01 +02:00
1 parent 8438e4c902
commit 07597a3764
5 files changed
+803

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
import { defineConfig } from 'vite';
import { resolve } from 'path';
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/index.js'),
formats: ['es'],
fileName: 'index'
},
rollupOptions: {
external: [
'fs',
'path',
'url',
'chalk',
'semver',
'yargs',
'yargs/helpers'
]
},
target: 'node14',
outDir: 'dist',
emptyOutDir: true,
sourcemap: true
}
});