diff --git a/packages/fes/build.config.js b/packages/fes/build.config.js index dcc2f0b2..e4c5ff27 100644 --- a/packages/fes/build.config.js +++ b/packages/fes/build.config.js @@ -1,4 +1,3 @@ - module.exports = { - copy: ['index.js'] + copy: ['index.js'], }; diff --git a/packages/fes/types.d.ts b/packages/fes/types.d.ts index be351861..cff8ad11 100644 --- a/packages/fes/types.d.ts +++ b/packages/fes/types.d.ts @@ -2,6 +2,7 @@ import { Component, DefineComponent, App } from 'vue'; import { RouteRecordRaw, Router } from 'vue-router'; import { Plugin } from '@fesjs/runtime'; import { PluginRuntimeConfig } from '@@/runtime'; +import { PluginBuildConfig } from '@@/build'; // @ts-ignore export * from '@@/core/coreExports'; @@ -43,3 +44,23 @@ interface InnerRuntimeConfig { export function defineRuntimeConfig(config: InnerRuntimeConfig & PluginRuntimeConfig): InnerRuntimeConfig & PluginRuntimeConfig; + +interface InnerBuildConfig { + base: string; + dynamicImport: boolean; + mock: boolean | { + prefix: string; + }; + mountElementId: string; + plugins: string[]; + proxy: { + [apiPrefix: string]: { + target: string; + changeOrigin?: boolean; + } + }; + singular: boolean; +} + +export function defineBuildConfig(config: InnerBuildConfig & PluginBuildConfig ): InnerBuildConfig & PluginBuildConfig; +