Initial commit
Once again a weird place to commit, I have already done a lot of work, but I am just bad at using git, okay.
This commit is contained in:
29
packages/lib/vite.config.ts
Normal file
29
packages/lib/vite.config.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { resolve } from 'path';
|
||||
import { defineConfig } from 'vite';
|
||||
import dts from 'vite-plugin-dts';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
target: 'es2022',
|
||||
rollupOptions: {
|
||||
input: [
|
||||
resolve(__dirname, 'src/index.ts'),
|
||||
resolve(__dirname, 'src/solver.ts'),
|
||||
resolve(__dirname, 'src/validator.ts'),
|
||||
],
|
||||
preserveEntrySignatures: "strict",
|
||||
output: {
|
||||
dir: 'dist',
|
||||
entryFileNames: '[name].js',
|
||||
preserveModules: false
|
||||
}
|
||||
},
|
||||
sourcemap: true
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': '/src'
|
||||
}
|
||||
},
|
||||
plugins: [dts()]
|
||||
});
|
||||
Reference in New Issue
Block a user