Skip to content

Commit 295dce5

Browse files
cmtlytwebfanzc
authored andcommitted
fix: 调整vite config位置
1 parent 019e6cc commit 295dce5

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

packages/builder/src/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
import type { ZElpisConfig } from '@zelpis/shared/html-config'
2-
31
export * from './plugins/builder-plugin'
4-
5-
// 扩展 Vite 配置类型
6-
declare module 'vite' {
7-
interface UserConfig {
8-
zelpis?: ZElpisConfig
9-
}
10-
}

packages/core/src/plugins.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { BuilderPluginOption } from '@zelpis/builder/plugins'
22
import 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'
56
import { buildPlugin } from '@zelpis/builder/plugins'
67
import { 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+
}

0 commit comments

Comments
 (0)