-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathvite.config.shared.ts
More file actions
25 lines (23 loc) · 1022 Bytes
/
vite.config.shared.ts
File metadata and controls
25 lines (23 loc) · 1022 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
import path from "node:path";
import { defineConfig } from "vite";
// @ts-expect-error - dts outputs hashed filenames
import Chibivue from "./packages/@extensions/vite-plugin-chibivue/dist";
const resolve = (p: string) => path.resolve(import.meta.dirname, "packages", p);
export default defineConfig({
resolve: {
alias: {
chibivue: resolve("chibivue/src"),
"@chibivue/runtime-core": resolve("runtime-core/src"),
"@chibivue/runtime-dom": resolve("runtime-dom/src"),
"@chibivue/runtime-vapor": resolve("runtime-vapor/src"),
"@chibivue/reactivity": resolve("reactivity/src"),
"@chibivue/shared": resolve("shared/src"),
"@chibivue/compiler-core": resolve("compiler-core/src"),
"@chibivue/compiler-dom": resolve("compiler-dom/src"),
"@chibivue/compiler-sfc": resolve("compiler-sfc/src"),
"chibivue-router": resolve("@extensions/chibivue-router/src"),
"chibivue-store": resolve("@extensions/chibivue-store/src"),
},
},
plugins: [Chibivue()],
});