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

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/README.md CHANGED
@@ -201,7 +201,23 @@ export default defineConfig({
201
201
  | `intlPath` | `string` | `'@/utils/intl'` | 国际化工具路径 |
202
202
  | `pageAliasPrefix` | `string` | `'@/pages'` | 页面别名前缀 |
203
203
 
204
- > 注意:`dynamic` 函数已内置到插件中,通过虚拟模块 `virtual:micro-frontend/dynamic` 提供,无需额外配置。
204
+ > 注意:`dynamic` 请从 `@lemon-fe/vite-plugin-micro-frontend/runtime/dynamic` 引入(不含 qiankun);`renderWithQiankun` 请从 `runtime/qiankun` 引入且仅用于 `main.tsx`。旧路径 `./runtime` 仍可用,但不建议在新代码中使用。
205
+
206
+ ### Runtime 子路径
207
+
208
+ | 子路径 | 用途 | 依赖 |
209
+ | ------ | ---- | ---- |
210
+ | `runtime/dynamic` | 路由 / 业务组件 lazy load | 仅 `react` |
211
+ | `runtime/qiankun` | 子应用 bootstrap(`main.tsx`) | `vite-plugin-qiankun` |
212
+ | `runtime` | 兼容聚合入口 | 上述两者 re-export |
213
+
214
+ ```typescript
215
+ // routes.ts / 业务组件
216
+ import { dynamic } from "@lemon-fe/vite-plugin-micro-frontend/runtime/dynamic";
217
+
218
+ // main.tsx
219
+ import { renderWithQiankun } from "@lemon-fe/vite-plugin-micro-frontend/runtime/qiankun";
220
+ ```
205
221
 
206
222
  ## 路由约定
207
223