Skip to content

Conversation

colinaaa
Copy link
Collaborator

@colinaaa colinaaa commented Jul 12, 2025

Summary

The first step for #10068.

Note

We haven't implement the SpanContents trait yet. So only those can be auto-detected have syntax highlighting now.

E.g.:

image

Since the MietteHighlighter is private, we made a fork from miette::hightlighters.

Related links

This is a port of zkat/miette#313.

Checklist

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

Copy link

netlify bot commented Jul 12, 2025

Deploy Preview for rspack ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit cc1e413
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6879cc64c190190008dd8d38
😎 Deploy Preview https://deploy-preview-11006--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Jul 12, 2025
Copy link

codspeed-hq bot commented Jul 12, 2025

CodSpeed Performance Report

Merging #11006 will degrade performances by 16.76%

Comparing colinaaa:colin/0712/highlighters (cc1e413) with main (2040281)

🎉 Hooray! codspeed-node just leveled up to 4.0.1!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

❌ 1 regressions
✅ 15 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
bundle@basic-react-development 433.8 ms 521.2 ms -16.76%

@colinaaa
Copy link
Collaborator Author

colinaaa commented Jul 12, 2025

📦 Binary Size-limit

Comparing 451d48a to fix: factorize hooks avoid update dependency request (#10999) by jinrui

❌ Size increased by 1.01MB from 57.46MB to 58.48MB (⬆️1.76%)

https://github.com/web-infra-dev/rspack/actions/runs/16235448038/job/45844922038?pr=11006

kdy1 pushed a commit to swc-project/swc that referenced this pull request Jul 14, 2025
…nostics (#10852)

**Description:**

Automatically prevent the creation of `miette::GraphicalReportHandler when no diagnostics are present.

**Related issue:**

See performance regression in web-infra-dev/rspack#11006
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: feature release: feature related release(mr only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant