@lemon-fe/vite-plugin-micro-frontend 1.1.2 → 1.1.4
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 +4 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/modules.d.ts +13 -15
- package/dist/runtime.js +2 -27756
- package/dist/runtime.js.map +1 -1
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Plugin, PluginOption } from 'vite';
|
|
2
2
|
export { default as cssInjectedByJsPlugin } from 'vite-plugin-css-injected-by-js';
|
|
3
|
-
import { VitePluginFederationOptions } from '@originjs/vite-plugin-federation';
|
|
4
3
|
import { ComponentType } from 'react';
|
|
5
4
|
|
|
6
5
|
/**
|
|
@@ -19,11 +18,14 @@ interface RemoteConfig {
|
|
|
19
18
|
/**
|
|
20
19
|
* 模块联邦配置
|
|
21
20
|
*/
|
|
22
|
-
interface FederationConfig
|
|
21
|
+
interface FederationConfig {
|
|
23
22
|
/** 应用名称 */
|
|
24
23
|
name: string;
|
|
25
24
|
/** 远程入口文件名 */
|
|
26
25
|
filename?: string;
|
|
26
|
+
/** 暴露的模块 */
|
|
27
|
+
shared?: Record<string, string>;
|
|
28
|
+
exposes?: Record<string, string>;
|
|
27
29
|
/**
|
|
28
30
|
* exposes 目录路径,默认为 src/exposes
|
|
29
31
|
* 插件会自动扫描该目录下的子目录作为暴露的模块
|