-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.js
38 lines (35 loc) · 1.01 KB
/
vite.config.js
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
38
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
"@kws3": path.resolve(__dirname, "./packages/@kws3"),
"~": path.resolve(__dirname, "./src"),
"@scripts": path.resolve(__dirname, "./scripts"),
},
},
plugins: [svelte()],
});
// import { defineConfig } from "vite";
// import { svelte } from "@sveltejs/vite-plugin-svelte";
// import path from "path";
// import sveltePreprocess from "svelte-preprocess";
// // https://vitejs.dev/config/
// export default defineConfig({
// resolve: {
// alias: {
// "@kws3": path.resolve(__dirname, "./packages/@kws3"),
// "~": path.resolve(__dirname, "./src"),
// },
// },
// plugins: [
// svelte({
// preprocess: [sveltePreprocess({ typescript: true })],
// }),
// ],
// optimizeDeps: {
// include: ["svelte", path.resolve(__dirname, "./packages/@kws3/ui")],
// },
// });