web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.19k stars 108 forks source link

feat: format JSON in generated virtual modules #1185

Closed chenjiahan closed 1 week ago

chenjiahan commented 1 week ago

Summary

Format JSON in generated virtual modules.

This can help to display readable code frames when there are some syntax errors in the virtual modules.

For example:

截屏2024-06-15 20 32 16 截屏2024-06-15 20 45 13

Checklist

netlify[bot] commented 1 week ago

Deploy Preview for aquamarine-blini-95325f ready!

Name Link
Latest commit 28ce59568d161cd988526295e630c9d8116dfa5f
Latest deploy log https://app.netlify.com/sites/aquamarine-blini-95325f/deploys/666e47f97568cc000899486a
Deploy Preview https://deploy-preview-1185--aquamarine-blini-95325f.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 90 (🔴 down 1 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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