Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Print the stats.moduleName (the readable relative path) if present, improving clarity and accuracy in file name reporting.

Before

Screenshot 2025-09-29 at 13 41 06

After

Screenshot 2025-09-29 at 13 40 49

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings September 29, 2025 05:53
@netlify
Copy link

netlify bot commented Sep 29, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 76db28e
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68da1ecef737b400082dd75e
😎 Deploy Preview https://deploy-preview-6280--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: 68 (🔴 down 6 from production)
Accessibility: 97 (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.

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 improves file name reporting by prioritizing moduleName over moduleIdentifier when formatting error messages. The change makes the displayed file paths more readable by showing relative paths (e.g., ./src/App.jsx) instead of absolute paths with inline loaders.

  • Prioritize stats.moduleName (readable relative path) when available
  • Fallback to existing logic using stats.moduleIdentifier when moduleName is not present
  • Remove stats.moduleName from the final fallback chain to avoid duplication

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@chenjiahan chenjiahan merged commit 9d2e491 into main Sep 29, 2025
12 checks passed
@chenjiahan chenjiahan deleted the stats_error_module_name_0929 branch September 29, 2025 06:02
@chenjiahan chenjiahan mentioned this pull request Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants