fix(bundler-mako): config mako.plugins should work#1400
Conversation
|
Warning Review failedThe pull request is closed. Walkthrough此次更新主要涉及动态加载内容的功能,特别是当路径以 Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
e2e/fixtures.umi/config.mako.plugins/pages/index.tsx (1)
2-3: 建议使用动态导入。使用
require语句可能不是在现代代码库中进行动态导入的最佳方式。建议使用import()以提高可维护性和性能。export default async function App() { const module = await import('./foo.bar'); console.log(module); return <div>123456</div>; }
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- e2e/fixtures.umi/config.mako.plugins/.umirc.ts (1 hunks)
- e2e/fixtures.umi/config.mako.plugins/expect.js (1 hunks)
- e2e/fixtures.umi/config.mako.plugins/pages/foo.bar (1 hunks)
- e2e/fixtures.umi/config.mako.plugins/pages/index.tsx (1 hunks)
- packages/bundler-mako/index.js (3 hunks)
Files skipped from review due to trivial changes (2)
- e2e/fixtures.umi/config.mako.plugins/expect.js
- e2e/fixtures.umi/config.mako.plugins/pages/foo.bar
Additional comments not posted (4)
e2e/fixtures.umi/config.mako.plugins/pages/index.tsx (1)
4-4: JSX 渲染看起来不错。渲染一个简单的 JSX 元素,如果符合需求,可以接受。
e2e/fixtures.umi/config.mako.plugins/.umirc.ts (2)
6-13: 确保load函数的正确性。该函数处理以 'foo.bar' 结尾的文件路径,返回内容和类型。请确保此逻辑符合预期。
17-17:mfsu属性设置看起来不错。将
mfsu设置为false,如果这是预期行为,可以接受。packages/bundler-mako/index.js (1)
243-243: 验证supportMakoConfigKeys数组的更改。将 'plugins' 添加到
supportMakoConfigKeys数组中,确保配置接受plugins数组。请验证该更改的正确性。
ref:
https://github.com/ant-design/ant-design/actions/runs/9886514323/job/27306524583?pr=49821
Summary by CodeRabbit
新功能
代码优化