-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvite.config.ts
More file actions
33 lines (32 loc) · 666 Bytes
/
vite.config.ts
File metadata and controls
33 lines (32 loc) · 666 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
26
27
28
29
30
31
32
33
import { builtinModules } from "module";
import { resolve } from "path";
import { defineConfig } from "vite";
import checker from "vite-plugin-checker";
export default defineConfig({
plugins: [
checker({
typescript: true,
}),
],
build: {
minify: false,
sourcemap: true,
lib: {
entry: resolve(__dirname, "src/index.ts"),
fileName: "index",
formats: ["cjs"],
},
rollupOptions: {
external: [
"vscode",
...builtinModules,
...builtinModules.map((v) => `node:${v}`),
],
output: {
manualChunks: {
vendor: ["js-yaml"],
},
},
},
},
});