-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
32 lines (30 loc) · 779 Bytes
/
vite.config.ts
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
/// <reference types="vitest" />
import { defineConfig } from "vite";
import checker from "vite-plugin-checker";
import dts from "vite-plugin-dts";
import { externalizeDeps } from "vite-plugin-externalize-deps";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
test: {
include: ["lib/**/*.{test,spec}.?(c|m)[jt]s?(x)"],
},
build: {
lib: {
entry: "./lib/index.ts",
formats: ["es"],
fileName: "index",
},
outDir: "./dist/",
modulePreload: false,
copyPublicDir: false,
// rollupOptions: {
// external: ["axios", "crypto-js"],
// },
},
plugins: [
dts({ tsconfigPath: "./tsconfig.lib.json" }),
checker({ typescript: true }),
tsconfigPaths(),
externalizeDeps(),
],
});