-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathvite.config.ts
More file actions
28 lines (27 loc) · 852 Bytes
/
vite.config.ts
File metadata and controls
28 lines (27 loc) · 852 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
import { defineConfig } from "vitest/config";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { svelteTesting } from "@testing-library/svelte/vite";
import Icons from "unplugin-icons/vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [svelte(), Icons({ compiler: "svelte" }), svelteTesting()],
clearScreen: false,
appType: "custom",
build: {
sourcemap: true,
lib: {
name: "Yancy",
entry: ["lib/Yancy/Editor/src/index.ts"],
},
// Put the library with the rest of the editor
// XXX: I don't like this, but I can't think of any other modular way of doing it...
outDir: "lib/Yancy/Editor/dist/editor",
emptyOutDir: false,
copyPublicDir: false,
},
test: {
include: ["t/**/*.spec.ts"],
environment: "jsdom",
setupFiles: ["./vitest-setup.ts"],
},
});