Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

  • add a new resolve e2e fixture that exercises the Node.js package.json imports field
  • verify the #app/* import alias resolves correctly in both dev and build

Testing

  • pnpm lint (not run: pnpm is not available in the environment)

Codex Task

Copilot AI review requested due to automatic review settings December 5, 2025 23:49
@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 74367cb
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/69336f909acb7600081f1c47
😎 Deploy Preview https://deploy-preview-6715--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 54 (🔴 down 16 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@chenjiahan chenjiahan changed the title Add e2e coverage for package.json imports resolution test(e2e): add case for package.json imports resolution Dec 5, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds e2e test coverage for Node.js package.json imports field resolution with wildcard patterns, complementing the existing pkg-imports test which covers exact mappings.

  • Adds a new e2e test fixture that exercises wildcard import patterns (#app/* mapping to ./src/*.js)
  • Verifies import alias resolution works correctly in both development and build modes

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
e2e/cases/resolve/node-imports-field/src/index.js Entry point that imports from #app/foo using the wildcard import pattern
e2e/cases/resolve/node-imports-field/src/foo.js Module that exports the test message to verify resolution works
e2e/cases/resolve/node-imports-field/package.json Configures the imports field with wildcard pattern (#app/* -> ./src/*.js)
e2e/cases/resolve/node-imports-field/index.test.ts Test suite verifying the imports field resolution in both dev and build modes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit d48cfcb into main Dec 6, 2025
19 checks passed
@chenjiahan chenjiahan deleted the codex/add-test-case-for-node-js-import-in-rsbuild branch December 6, 2025 23:28
@chenjiahan chenjiahan mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants