forked from Forsakringskassan/designsystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.mts
More file actions
31 lines (29 loc) · 1.13 KB
/
vite.config.mts
File metadata and controls
31 lines (29 loc) · 1.13 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
/* This file is used by Cypress only, see `packages/vue/vite.config.ts` for the actual config */
import * as path from "node:path";
import { defineConfig } from "vite";
import { vuePlugin } from "@forsakringskassan/vite-lib-config/vite";
export default defineConfig({
optimizeDeps: {
entries: [
"packages/*/src/**/*.{ts,vue}",
"cypress/**/*.{ts,vue}",
"!**/*.spec.ts",
],
include: ["dayjs", "lodash", "vue", "vue-router"],
},
plugins: [vuePlugin()],
resolve: {
alias: {
/* enable vue with runtime compiler */
vue: "vue/dist/vue.esm-bundler.js",
/* alias packages to source folders instead of compiled versions */
"@fkui/date": path.resolve("packages/date/src/index.ts"),
"@fkui/logic": path.resolve("packages/logic/src/index.ts"),
"@fkui/vue/cypress": path.resolve(
"packages/vue/src/cypress/index.ts",
),
"@fkui/vue": path.resolve("packages/vue/src/index.ts"),
"@fkui/vue-labs": path.resolve("packages/vue-labs/src/index.ts"),
},
},
});