-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvite.config.mjs
More file actions
92 lines (89 loc) · 2.58 KB
/
Copy pathvite.config.mjs
File metadata and controls
92 lines (89 loc) · 2.58 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import viteTsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [
tailwindcss(),
react(),
viteTsconfigPaths(),
dts({
insertTypesEntry: true,
include: ["src/**/*"],
exclude: ["src/**/*.stories.*", "src/**/*.test.*"],
tsconfigPath: "./tsconfig.build.json"
})
],
build: {
outDir: "dist",
lib: {
entry: resolve(__dirname, "src/index.ts"),
name: "Yail",
formats: ["es"],
fileName: format => `yail.${format}.js`
},
rollupOptions: {
external: [
"react",
"react-dom",
"react-router-dom",
"classnames",
"@tiptap/react",
"@tiptap/core",
"@tiptap/extension-blockquote",
"@tiptap/extension-bold",
"@tiptap/extension-bubble-menu",
"@tiptap/extension-bullet-list",
"@tiptap/extension-character-count",
"@tiptap/extension-code",
"@tiptap/extension-code-block",
"@tiptap/extension-code-block-lowlight",
"@tiptap/extension-color",
"@tiptap/extension-document",
"@tiptap/extension-dropcursor",
"@tiptap/extension-hard-break",
"@tiptap/extension-heading",
"@tiptap/extension-highlight",
"@tiptap/extension-history",
"@tiptap/extension-image",
"@tiptap/extension-italic",
"@tiptap/extension-link",
"@tiptap/extension-list-item",
"@tiptap/extension-mention",
"@tiptap/extension-ordered-list",
"@tiptap/extension-paragraph",
"@tiptap/extension-placeholder",
"@tiptap/extension-strike",
"@tiptap/extension-table",
"@tiptap/extension-task-item",
"@tiptap/extension-task-list",
"@tiptap/extension-text",
"@tiptap/extension-text-style",
"@tiptap/extension-youtube",
"@tiptap/extension-gapcursor",
"@tiptap/suggestion",
"prosemirror-model",
"prosemirror-state",
"lowlight",
"rough-notation",
"fuse.js",
"react-colorful",
"react-copy-to-clipboard",
"react-datepicker",
"react-image-crop",
"react-select",
"react-select-async-paginate",
"react-step-wizard",
"react-tabs",
"react-tooltip",
"sanitize-html",
"tippy.js",
"boring-avatars",
"@popperjs/core",
"@programmer_network/ajv"
]
}
}
});