Skip to content

fix(server): remove .mjs suffix check when loading ESM module in runner#4536

Merged
chenjiahan merged 10 commits intomainfrom
feat/support-determine-module-type
Feb 14, 2025
Merged

fix(server): remove .mjs suffix check when loading ESM module in runner#4536
chenjiahan merged 10 commits intomainfrom
feat/support-determine-module-type

Conversation

@9aoy
Copy link
Copy Markdown
Contributor

@9aoy 9aoy commented Feb 12, 2025

Summary

Only rspack outputs require proxy import, so only experiments.outputModule is required for loading rspack esm outputs in runner, no .mjs suffix is ​​required.

Related Links

Checklist

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

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 12, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit bc46a6e
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67af0aed23f473000827c5bc
😎 Deploy Preview https://deploy-preview-4536--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: 56 (🟢 up 9 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 site configuration.

@9aoy 9aoy requested a review from chenjiahan February 12, 2025 07:37
@9aoy 9aoy changed the title feat(server): support determine module type enhance(server): remove .mjs suffix check when loading esm module in runner Feb 14, 2025
@9aoy 9aoy requested a review from chenjiahan February 14, 2025 09:16
@chenjiahan chenjiahan enabled auto-merge (squash) February 14, 2025 09:22
@chenjiahan chenjiahan changed the title enhance(server): remove .mjs suffix check when loading esm module in runner fix(server): remove .mjs suffix check when loading ESM module in runner Feb 14, 2025
@chenjiahan chenjiahan merged commit 0096604 into main Feb 14, 2025
15 checks passed
@chenjiahan chenjiahan deleted the feat/support-determine-module-type branch February 14, 2025 09:28
@9aoy 9aoy mentioned this pull request Feb 14, 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