2022-04-03 19:26:49 +08:00
|
|
|
import type {UserConfig} from 'vite';
|
|
|
|
import type {Options} from '@vitejs/plugin-vue'
|
2022-04-04 15:32:41 +08:00
|
|
|
import {Options as PolyfillOptions } from '@vitejs/plugin-legacy'
|
2022-04-03 19:26:49 +08:00
|
|
|
import createPlugin from '@vitejs/plugin-vue-jsx'
|
2022-04-04 15:32:41 +08:00
|
|
|
import {createHtmlPlugin} from 'vite-plugin-html'
|
2022-04-03 19:26:49 +08:00
|
|
|
|
2022-06-22 19:24:49 +08:00
|
|
|
declare module "@fesjs/fes" {
|
|
|
|
interface PluginBuildConfig {
|
|
|
|
viteOption?: UserConfig;
|
|
|
|
viteVuePlugin?: Options;
|
|
|
|
viteVueJsx?: Parameters<typeof createPlugin>[0];
|
|
|
|
viteLegacy?: PolyfillOptions;
|
|
|
|
viteHtml?: Parameters<typeof createHtmlPlugin>[0]
|
|
|
|
}
|
|
|
|
}
|