-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathvite.config.ts
More file actions
31 lines (30 loc) · 704 Bytes
/
vite.config.ts
File metadata and controls
31 lines (30 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import path from 'node:path'
import { defineConfig } from 'vite'
import angular from '@analogjs/vite-plugin-angular'
export default defineConfig({
root: import.meta.dirname,
plugins: [
angular({
tsconfig: path.join(import.meta.dirname, 'tsconfig.build.json'),
}),
],
resolve: {
mainFields: ['module'],
},
build: {
target: ['esnext'],
sourcemap: true,
lib: {
entry: 'src/index.ts',
fileName: `fesm2022/tanstack-angular-table`,
formats: ['es'],
},
rolldownOptions: {
external: [/^@angular\/.*/, /^@tanstack\/.*/, 'rxjs', 'rxjs/operators'],
output: {
preserveModules: false,
},
},
minify: false,
},
})