forked from TanStack/virtual
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
30 lines (29 loc) · 808 Bytes
/
vite.config.ts
File metadata and controls
30 lines (29 loc) · 808 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
import path from 'node:path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
root: __dirname,
plugins: [react()],
build: {
rollupOptions: {
input: {
scroll: path.resolve(__dirname, 'scroll/index.html'),
'measure-element': path.resolve(
__dirname,
'measure-element/index.html',
),
'smooth-scroll': path.resolve(__dirname, 'smooth-scroll/index.html'),
'stale-index': path.resolve(__dirname, 'stale-index/index.html'),
},
},
},
resolve: {
alias: {
'@tanstack/react-virtual': path.resolve(__dirname, '../../src/index'),
'@tanstack/virtual-core': path.resolve(
__dirname,
'../../../virtual-core/src/index',
),
},
},
})