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:
@@ -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',
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user