File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- import type { ZElpisConfig } from '@zelpis/shared/html-config'
2-
31export * from './plugins/builder-plugin'
4-
5- // 扩展 Vite 配置类型
6- declare module 'vite' {
7- interface UserConfig {
8- zelpis ?: ZElpisConfig
9- }
10- }
Original file line number Diff line number Diff line change 11import type { BuilderPluginOption } from '@zelpis/builder/plugins'
22import type { RenderPluginOption } from '@zelpis/render/plugins'
3- import type { PluginOption } from 'vite '
3+ import type { ZElpisConfig } from '@zelpis/shared/html-config '
44
5+ import type { PluginOption } from 'vite'
56import { buildPlugin } from '@zelpis/builder/plugins'
67import { renderPlugin } from '@zelpis/render/plugins'
78
@@ -18,3 +19,10 @@ export function zelpisPlugin(options?: ZelpisPluginOption): PluginOption {
1819
1920 return [ buildPlugin ( build ) , renderPlugin ( render ) ]
2021}
22+
23+ // 扩展 Vite 配置类型
24+ declare module 'vite' {
25+ interface UserConfig {
26+ zelpis ?: ZElpisConfig
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments