core icon indicating copy to clipboard operation
core copied to clipboard

fix: loadEntry default behavior

Open zhangHongEn opened this issue 5 months ago • 9 comments

Description

loadEntry hook returns the unprocessed module according to the original logic, and the current situation will report an error

{
  name: "loadEntryPlugin",
  loadEntry({remoteInfo}) {
    if (remoteInfo.name === "test") {
      return {init, get}
    }
    // other module error
  }
}

Related Issue

Types of changes

  • [ ] Docs change / refactoring / dependency upgrade
  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)

Checklist

  • [x] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.
  • [ ] I have updated the documentation.

zhangHongEn avatar Sep 05 '24 03:09 zhangHongEn