mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-05 05:08:09 +08:00
dc3e0aceb1
* fix: 优化类型提示 * fix: 添加 enums 接口类型声明 * feat: 配置插件api提示 Co-authored-by: wanchun <445436867@qq.com>
15 lines
543 B
TypeScript
15 lines
543 B
TypeScript
import type {UserConfig} from 'vite';
|
|
import type {Options} from '@vitejs/plugin-vue'
|
|
import {Options as PolyfillOptions } from '@vitejs/plugin-legacy'
|
|
import createPlugin from '@vitejs/plugin-vue-jsx'
|
|
import {createHtmlPlugin} from 'vite-plugin-html'
|
|
|
|
declare module "@fesjs/fes" {
|
|
interface PluginBuildConfig {
|
|
viteOption?: UserConfig;
|
|
viteVuePlugin?: Options;
|
|
viteVueJsx?: Parameters<typeof createPlugin>[0];
|
|
viteLegacy?: PolyfillOptions;
|
|
viteHtml?: Parameters<typeof createHtmlPlugin>[0]
|
|
}
|
|
} |