@taro-minify-pack/plugin-async-pack 0.1.0 → 0.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/README.md +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,9 +132,8 @@ const AsyncComponent = defineAsyncComponent(() => import('./async-component')
|
|
|
132
132
|
2. **关闭预打包**:必须关闭 Taro 的预打包功能,否则可能与异步分包功能冲突
|
|
133
133
|
3. **Babel 配置**:需要正确配置 Babel 的 `dynamic-import-node` 选项
|
|
134
134
|
4. **Webpack 版本**:仅支持 Webpack 5 编译器
|
|
135
|
-
5.
|
|
136
|
-
6.
|
|
137
|
-
7. **版本要求**:插件版本`0.0.5-alpha.x`尝试实现样式文件异步加载受微信机制影响存在无法优化的「闪屏样式丢失」,故`0.0.5`及以后版本不支持样式文件异步加载。
|
|
135
|
+
5. **分包数量**:根据项目实际情况配置 `dynamicPackageCount`,过多的分包可能会影响性能
|
|
136
|
+
6. **版本要求**:插件版本`0.0.5-alpha.x`尝试实现样式文件异步加载受微信机制影响存在无法优化的「闪屏样式丢失」,故`0.0.5`及以后版本不支持样式文件异步加载。
|
|
138
137
|
|
|
139
138
|
## 🔧 配置选项
|
|
140
139
|
|
|
@@ -152,7 +151,6 @@ const AsyncComponent = defineAsyncComponent(() => import('./async-component')
|
|
|
152
151
|
- 确保代码中使用了 `import()` 动态导入语法
|
|
153
152
|
|
|
154
153
|
### 2. 异步组件的样式没有加载?
|
|
155
|
-
- 请确保已正确安装 `@taro-minify-pack/react-lazy-enhanced` 包
|
|
156
154
|
- 检查是否有编译错误或警告信息
|
|
157
155
|
|
|
158
156
|
### 3. 配置后编译失败?
|