@lemon-fe/vite-plugin-micro-frontend 1.0.9 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -152,6 +152,8 @@ declare function mfGeneratorPlugin(options: MfGeneratorOptions): VitePlugin;
152
152
  */
153
153
  declare function federationPlugin(federationOptions: FederationConfig): PluginOption[];
154
154
 
155
+ declare function autoExternalAntd(): Plugin;
156
+
155
157
  interface DynamicOptions<P = Record<string, unknown>> {
156
158
  /** 动态加载函数,返回一个包含 default 导出的 Promise */
157
159
  loader: () => Promise<{
@@ -162,7 +164,6 @@ interface DynamicOptions<P = Record<string, unknown>> {
162
164
  }
163
165
  /**
164
166
  * 封装动态导入函数,兼容 Umi 的 dynamic
165
- *
166
167
  */
167
168
  declare function dynamic<P = Record<string, unknown>>(options: DynamicOptions<P>): ComponentType<P>;
168
169
 
@@ -213,5 +214,5 @@ declare function getRoutes(opts: IOpts): IRoute[];
213
214
  */
214
215
  declare function microFrontendPlugins(options: MicroFrontendPluginOptions): PluginOption[];
215
216
 
216
- export { dynamic, federationPlugin, getRoutes, htmlRemoveFreshPlugin, mfGeneratorPlugin, microFrontendPlugins, pagesRoutesPlugin };
217
+ export { autoExternalAntd, dynamic, federationPlugin, getRoutes, htmlRemoveFreshPlugin, mfGeneratorPlugin, microFrontendPlugins, pagesRoutesPlugin };
217
218
  export type { ComponentMetadata, DynamicOptions, FederationConfig, IRoute, MfGeneratorOptions, MicroFrontendPluginOptions, RemoteConfig, RouteConfig, RoutesPluginOptions, RoutesTemplateOptions, VitePlugin };