Skip to content

fix: update HMR import paths to include file extensions#6774

Merged
chenjiahan merged 1 commit intomainfrom
hmr_import_extensions_1214
Dec 15, 2025
Merged

fix: update HMR import paths to include file extensions#6774
chenjiahan merged 1 commit intomainfrom
hmr_import_extensions_1214

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Update HMR import paths to include file extensions. Fix:

Screenshot 2025-12-14 at 21 58 24

Checklist

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

Copilot AI review requested due to automatic review settings December 14, 2025 14:00
@chatgpt-codex-connector
Copy link
Copy Markdown

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.

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 14, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 24881b2
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/693ec3021576130008c4329e
😎 Deploy Preview https://deploy-preview-6774--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: 74 (🟢 up 13 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.

Copy link
Copy Markdown
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 fixes HMR import paths by adding .js file extensions to resolve module resolution issues in ESM environments. The changes ensure compatibility with strict ESM module resolution where file extensions are required.

Key Changes

  • Added .js extension to the HMR client import path
  • Added .js extension to the overlay client import path (when enabled)

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

@chenjiahan chenjiahan merged commit a9b6312 into main Dec 15, 2025
18 checks passed
@chenjiahan chenjiahan deleted the hmr_import_extensions_1214 branch December 15, 2025 03:08
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