-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
37 lines (33 loc) · 1.53 KB
/
vite.config.ts
File metadata and controls
37 lines (33 loc) · 1.53 KB
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
32
33
34
35
36
37
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
// ⚡️ DX: Fix Shadcn component imports in the monorepo source
"@/ui": path.resolve(__dirname, "../../packages/components/src/ui"),
"@/lib/utils": path.resolve(__dirname, "../../packages/components/src/lib/utils"),
"@/hooks": path.resolve(__dirname, "../../packages/components/src/hooks"),
"@": path.resolve(__dirname, "./src"),
// ⚡️ DX: App Data Symlink
"@app": path.resolve(__dirname, "./src/app-data"),
// ⚡️ DX: Map imports to source code for Hot Module Replacement
"@object-ui/components": path.resolve(__dirname, "../../packages/components/src"),
"@object-ui/react": path.resolve(__dirname, "../../packages/react/src"),
"@object-ui/core": path.resolve(__dirname, "../../packages/core/src"),
"@object-ui/types": path.resolve(__dirname, "../../packages/types/src"),
"@object-ui/data-objectql": path.resolve(__dirname, "../../packages/data-objectql/src"),
"@object-ui/plugin-kanban": path.resolve(__dirname, "../../packages/plugin-kanban/src"),
"@object-ui/plugin-charts": path.resolve(__dirname, "../../packages/plugin-charts/src"),
},
},
})