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 not create additional missing modules #5124

Merged
merged 7 commits into from
Dec 27, 2023

Conversation

h-a-n-a
Copy link
Collaborator

@h-a-n-a h-a-n-a commented Dec 26, 2023

Summary

Follow up on #5084.
closes #5085.

This PR removes the old missing module. To replace the old one, this PR aligns the missing module in code generation stage of each referencing module of the missing modules.

This PR also moves diagnostics to ModuleFactoryCreateData, as ModuleFactory is singleton if DependencyType is the same to avoid conflicts between different creations.

Test Plan

Enabled more compiler tests for options.bail.
Added diagnostic test for empty-dependency.

Require Documentation?

  • No
  • Yes, the corresponding rspack-website PR is __

@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Dec 26, 2023
Copy link
Collaborator Author

h-a-n-a commented Dec 26, 2023

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Dec 26, 2023
@h-a-n-a h-a-n-a self-assigned this Dec 26, 2023
@h-a-n-a h-a-n-a force-pushed the 12-26-feat_add_resolve_errors branch from e8af080 to 169a83f Compare December 27, 2023 08:12
@h-a-n-a h-a-n-a force-pushed the 12-26-feat_add_resolve_errors branch from 169a83f to 8afad27 Compare December 27, 2023 10:18
@h-a-n-a
Copy link
Collaborator Author

h-a-n-a commented Dec 27, 2023

!canary

Copy link
Contributor

0.4.5-canary-b3497fe-20231227113840

@h-a-n-a h-a-n-a changed the title feat: add resolve errors fix: should not create additional missing modules Dec 27, 2023
@github-actions github-actions bot added release: bug fix release: bug related release(mr only) and removed release: feature release: feature related release(mr only) labels Dec 27, 2023
@h-a-n-a h-a-n-a marked this pull request as ready for review December 27, 2023 12:53
@h-a-n-a h-a-n-a requested review from a team December 27, 2023 12:53
@h-a-n-a h-a-n-a merged commit 285c5f3 into main Dec 27, 2023
27 checks passed
@h-a-n-a h-a-n-a deleted the 12-26-feat_add_resolve_errors branch December 27, 2023 13:02
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.

Panic occurred at runtime.
2 participants