Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: should create an empty codegen result for module that has failure in codegen #7777

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

JSerFeng
Copy link
Collaborator

@JSerFeng JSerFeng commented Sep 3, 2024

Summary

fix #7382

When code_generation returns an Err, we should push this error to diagnostics and keep a empty CodegenerateResult like webpack
Parse error in concatenatedModule should be added to compilation diagnostics.

Checklist

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

@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 Sep 3, 2024
Copy link

netlify bot commented Sep 3, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 80627ec
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66ebeb8182844e0008652836

@JSerFeng JSerFeng changed the title fix: parse error in concatenatedModule should be emitted to diagnostics fix: should create an empty codegen result for module that has failure in codegen Sep 3, 2024
@JSerFeng JSerFeng enabled auto-merge (squash) September 3, 2024 12:28
@JSerFeng JSerFeng force-pushed the fix/concate-parse branch 2 times, most recently from 4ecb4ce to 3c55ddd Compare September 13, 2024 07:49
@JSerFeng JSerFeng merged commit e32e58b into main Sep 19, 2024
28 checks passed
@JSerFeng JSerFeng deleted the fix/concate-parse branch September 19, 2024 09:56
JSerFeng added a commit that referenced this pull request Sep 29, 2024
…e in codegen (#7777)

fix: parse error in concatenatedModule should be emitted to diagnostics
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.

[Bug]: something was wrong ,see the picture
3 participants