Skip to content

fix: should convert diagnostic.loc to string#9695

Merged
JSerFeng merged 1 commit intomainfrom
fix/diagnostic-loc
Mar 18, 2025
Merged

fix: should convert diagnostic.loc to string#9695
JSerFeng merged 1 commit intomainfrom
fix/diagnostic-loc

Conversation

@JSerFeng
Copy link
Contributor

Summary

Should convert loc field to string type. Some plugin(TsChecker for example) will push error to compilation which contains object type loc field, currently Rspack will just panic in that situation

Even if we are not consuming loc field, we should not panic

Checklist

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

@netlify
Copy link

netlify bot commented Mar 17, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 35be395
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/67d8e936df151a0008d29087

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Mar 17, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 17, 2025

CodSpeed Performance Report

Merging #9695 will not alter performance

Comparing fix/diagnostic-loc (35be395) with main (7cd8802)

🎉 Hooray! codspeed-rust just leveled up to 2.7.2!

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

✅ 8 untouched benchmarks

@JSerFeng JSerFeng force-pushed the fix/diagnostic-loc branch from 3270705 to 35be395 Compare March 18, 2025 03:32
@JSerFeng JSerFeng changed the title fix(JsDiagnostic): should convert loc to string fix: should convert loc to string Mar 18, 2025
@JSerFeng JSerFeng changed the title fix: should convert loc to string fix: should convert diagnostic.loc to string Mar 18, 2025
@JSerFeng JSerFeng marked this pull request as ready for review March 18, 2025 06:31
@JSerFeng JSerFeng merged commit 467a684 into main Mar 18, 2025
35 checks passed
@JSerFeng JSerFeng deleted the fix/diagnostic-loc branch March 18, 2025 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants