-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
50 lines (48 loc) · 2.41 KB
/
vite.config.ts
File metadata and controls
50 lines (48 loc) · 2.41 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
38
39
40
41
42
43
44
45
46
47
48
49
50
import path from "node:path";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig(async () => ({
build: {
lib: {
entry: "example/index.html",
},
},
clearScreen: false,
plugins: [solid(), tailwindcss(), tsconfigPaths()],
resolve: {
alias: {
"framer-motion/dist/es/animation/interfaces/motion-value.mjs": path.resolve(
__dirname,
"node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs",
),
"framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs": path.resolve(
__dirname,
"node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs",
),
"framer-motion/dist/es/projection/node/state.mjs": path.resolve(__dirname, "node_modules/framer-motion/dist/es/projection/node/state.mjs"),
"framer-motion/dist/es/projection/styles/scale-border-radius.mjs": path.resolve(
__dirname,
"node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs",
),
"framer-motion/dist/es/projection/styles/scale-box-shadow.mjs": path.resolve(
__dirname,
"node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs",
),
"framer-motion/dist/es/projection/styles/scale-correction.mjs": path.resolve(
__dirname,
"node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs",
),
"framer-motion/dist/es/render/html/HTMLVisualElement.mjs": path.resolve(
__dirname,
"node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs",
),
"framer-motion/dist/es/render/store.mjs": path.resolve(__dirname, "node_modules/framer-motion/dist/es/render/store.mjs"),
"framer-motion/dist/es/render/svg/SVGVisualElement.mjs": path.resolve(__dirname, "node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs"),
"framer-motion/dist/es/render/utils/setters.mjs": path.resolve(__dirname, "node_modules/framer-motion/dist/es/render/utils/setters.mjs"),
"framer-motion/dist/es/utils/delay.mjs": path.resolve(__dirname, "node_modules/framer-motion/dist/es/utils/delay.mjs"),
"framer-motion/dist/es/utils/reduced-motion/state.mjs": path.resolve(__dirname, "node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs"),
},
},
}));