Skip to content

Commit

Permalink
feat: 修复size-report插件判断问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Jan 17, 2025
1 parent 4c7e190 commit 3f79257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/size-report/src/SizeReportPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ class SizeReportPlugin {
// 遍历 skylineSubpackages
this.options.skylineSubpackages.forEach((skylineSubpackage) => {
const subpackageInfo = mpx.dynamicEntryInfo[skylineSubpackage]
if (subpackageInfo.entries) {
if (subpackageInfo && subpackageInfo.entries) {
subpackageInfo.entries.forEach((entry) => {
if (entry.hasAsync) {
// 报错提示skyline分包不可被其他分包异步引用
Expand Down

0 comments on commit 3f79257

Please sign in to comment.