1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

feat(packages/stdlib): base vite config

This commit is contained in:
2024-04-10 16:49:49 +07:00
parent a5d33ea9db
commit 04347254b4
3 changed files with 654 additions and 12 deletions

View File

@@ -3,12 +3,22 @@ import dts from 'vite-plugin-dts';
import { resolve } from 'pathe';
export default defineConfig({
build: {
lib: {
name: 'Stdlib',
fileName: 'stdlib',
entry: resolve(__dirname, './src/index.ts'),
},
},
resolve: {
alias: {
'@': resolve(__dirname, './src'),
},
},
plugins: [
dts({ insertTypesEntry: true }),
dts({
insertTypesEntry: true,
exclude: '**/*.test.ts',
}),
],
});