@lemon-fe/vite-plugin-micro-frontend 1.2.2 → 1.2.3

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
@@ -61,6 +61,11 @@ type DynamicBaseConfig = {
61
61
  * 示例:`"(window.EARTH_BASE_CONFIG && window.EARTH_BASE_CONFIG.EARTH_ALL_SHARE_HOST ? window.EARTH_BASE_CONFIG.EARTH_ALL_SHARE_HOST.replace(/\\\\/$/, '') : '') + '/app-earth-wms'"`
62
62
  */
63
63
  publicPath?: string;
64
+ /**
65
+ * 应用部署子路径(不含首尾 `/`),如 `app-earth-wms`。
66
+ * 当生产 `base` 使用占位符 `/__dynamic_base__/` 时必填,用于 publicPath 拼接与 entry import 兜底改写。
67
+ */
68
+ appBase?: string;
64
69
  /**
65
70
  * 移除 HTML 中 `index-*.css` 的 link 与 dynamicBase 注入的对应 preload(样式全部由 JS 注入时使用)。
66
71
  */
@@ -85,7 +90,7 @@ interface RemoteConfig {
85
90
  remoteName: string;
86
91
  /** 入口文件路径 */
87
92
  entry: string;
88
- /** 是否为 ES Module */
93
+ /** 是否为 ES Module;为 true 时优先 dynamic import,失败则自动降级为 UMD script 加载 */
89
94
  isESModule?: boolean;
90
95
  }
91
96
  /**