-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
33 lines (30 loc) · 951 Bytes
/
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
import { defineConfig } from "vite";
import { configDefaults } from "vitest/config";
import { libInjectCss } from "vite-plugin-lib-inject-css";
import Checker from "vite-plugin-checker";
import path from "path";
import tailwindcss from "tailwindcss";
import vue from "@vitejs/plugin-vue";
import { viteConfigCharts } from "./vite.config.charts";
export default defineConfig({
...viteConfigCharts,
build: {
lib: {
entry: path.resolve(__dirname, "lib/galaxy-charts.js"),
name: "GalaxyCharts",
fileName: "galaxy-charts",
},
rollupOptions: {
external: ["vue"],
output: {
globals: { vue: "vue" },
},
},
},
plugins: [vue(), tailwindcss(), libInjectCss(), Checker({ typescript: true })],
test: {
globals: true,
environment: "jsdom",
exclude: [...configDefaults.exclude, "e2e/*"],
},
});