Wiki source code of Vite shared configurations

Last modified by Manuel Leduc on 2026/03/23 12:12

Show last authors
1 == generateConfig ==
2
3 Provide the default shared Vite configuration for packages.
4
5 {{code language="typescript"}}
6 import type { UserConfig } from "vite";
7 generateConfig(path: string, distPath: string = "dist", entryRoot: string = "./src/"): UserConfig
8 {{/code}}
9
10 == generateConfigVue ==
11
12 Provide the shared Vite configuration for packages with Vue components
13
14 {{code language="typescript"}}
15 import type { UserConfig } from "vite";
16 generateWebjarNodeConfig(path: string, toBundle: string[] = [],): UserConfig;
17 {{/code}}
18
19 == generateWebjarNodeConfig ==
20
21 Provide the shared Vite configuration for webjar modules.
22
23 {{code language="typescript"}}
24 import type { UserConfig } from "vite";
25 generateWebjarNodeConfig(path: string, toBundle: string[] = []): UserConfig;
26 {{/code}}

Get Connected