Skip to content

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

Merged
JSerFeng merged 1 commit intomainfrom
fix/concate-parse
Sep 19, 2024
Merged

fix: should create an empty codegen result for module that has failure in codegen#7777
JSerFeng merged 1 commit intomainfrom
fix/concate-parse

Conversation

@JSerFeng
Copy link
Copy Markdown
Contributor

@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
@netlify
Copy link
Copy Markdown

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
@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