fix: module default export can not rendering#1491
fix: module default export can not rendering#1491hexqi merged 1 commit intoopentiny:release/v2.7.xfrom
Conversation
WalkthroughThe update refines the logic in the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant getComponents
participant window.TinyLowcodeComponent
Caller->>getComponents: Call with config (object)
alt destructuring is true and exportName present
getComponents->>window.TinyLowcodeComponent: Assign modules[exportName]
else destructuring is false or exportName missing
getComponents->>window.TinyLowcodeComponent: Assign modules.default
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learningspackages/canvas/common/src/utils.ts (12)⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
【问题】
默认导出的模式,没有读取
.default属性,导致无法渲染【解决方案】
增加
.default属性的读取。What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit