-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: ✅ add a require + context module test case #12436
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Walkthrough本次更新引入了一个新的 CSS 文件 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 (
|
Size Change: 0 B Total Size: 9.9 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
packages/preset-umi/fixtures/prepare-build/normal/context2/umi.png
is excluded by!**/*.png
Files selected for processing (3)
- packages/preset-umi/fixtures/prepare-build/normal/context2/css.css (1 hunks)
- packages/preset-umi/fixtures/prepare-build/normal/context2/index.ts (1 hunks)
- packages/preset-umi/fixtures/prepare-build/normal/index.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- packages/preset-umi/fixtures/prepare-build/normal/context2/css.css
Additional comments not posted (1)
packages/preset-umi/fixtures/prepare-build/normal/index.ts (1)
12-12
: 引入和使用loadByRequire
函数看起来没有问题。请确保在其他相关文件中也正确处理了这个新函数的引用。Also applies to: 18-18
Verification successful
引入和使用
loadByRequire
函数看起来没有问题。请确保在其他相关文件中也正确处理了这个新函数的引用。
packages/preset-umi/fixtures/prepare-build/normal/index.ts
:
import { loadByRequire } from './context2/';
console.log(loadByRequire);
packages/preset-umi/fixtures/prepare-build/normal/context2/index.ts
:
export function loadByRequire(f: string): any {
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all function calls to `loadByRequire` match the new usage. # Test: Search for the function usage. Expect: Only occurances of the new usage. rg --type typescript $'loadByRequire'Length of output: 71
Script:
#!/bin/bash # Description: Verify all function calls to `loadByRequire` match the new usage. # Test: Search for the function usage. Expect: Only occurrences of the new usage. rg --type ts 'loadByRequire'Length of output: 335
冲突了,merge 下 master。 |
.
Summary by CodeRabbit
.red
,将文本颜色设置为红色。