-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts.timestamp-1698090541170-c545cbdab416a.mjs
69 lines (69 loc) · 5.99 KB
/
vite.config.ts.timestamp-1698090541170-c545cbdab416a.mjs
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
// vite.config.ts
import { defineConfig } from "file:///D:/projet/drawer/node_modules/vite/dist/node/index.js";
import { resolve } from "node:path";
import dts from "file:///D:/projet/drawer/node_modules/vite-plugin-dts/dist/index.mjs";
import { execSync } from "child_process";
var __vite_injected_original_dirname = "D:\\projet\\drawer";
var vite_config_default = defineConfig({
build: {
cssMinify: true,
minify: false,
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(__vite_injected_original_dirname, "src/Drawer.ts"),
name: "Drawer",
// the proper extensions will be added
fileName: "drawer",
formats: ["iife", "cjs", "es", "umd"]
}
},
plugins: [
dts({
insertTypesEntry: true,
rollupTypes: true
}),
{
name: "postbuild-commands",
// the name of your custom plugin. Could be anything.
closeBundle: async () => {
console.log("Build docs...");
execSync("npm run build:docs");
console.log("Docs build !");
}
}
],
resolve: {
alias: {
find: "~",
replacement: resolve(__vite_injected_original_dirname, "src")
}
},
test: {
server: {
deps: {
inline: ["vitest-canvas-mock"]
}
},
setupFiles: ["./vitest.setup.ts"],
environment: "jsdom",
threads: false,
// For this config, check https://github.com/vitest-dev/vitest/issues/740
environmentOptions: {
jsdom: {
resources: "usable"
}
},
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
"**/e2e/**"
]
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291c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