Skip to content

fix: ignore warning handler in MF2 plugin#883

Merged
jbroma merged 6 commits intomainfrom
fix/stats-null-mf2
Jan 21, 2025
Merged

fix: ignore warning handler in MF2 plugin#883
jbroma merged 6 commits intomainfrom
fix/stats-null-mf2

Conversation

@jbroma
Copy link
Copy Markdown
Contributor

@jbroma jbroma commented Jan 20, 2025

Summary

Closes #854

Fixes an issue where MF2 plugin would cause a dev server crash because it expected every warning to have moduleDescriptor.name present. This was fixed by verifying the structure of warning object beforehand. I've also added additional check for the same warning in runtime-core which was added in newer versions of MF2.

Test plan

  • - unit tests pass
  • - testers work

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 20, 2025

🦋 Changeset detected

Latest commit: 2c9140a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@callstack/repack Patch
@callstack/repack-plugin-reanimated Patch
@callstack/repack-dev-server Patch
@callstack/repack-init Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
repack-website ⬜️ Ignored (Inspect) Jan 20, 2025 5:44pm

@jbroma jbroma requested a review from szymonrybczak January 20, 2025 17:44
Comment thread apps/tester-federation-v2/package.json
Comment thread packages/repack/src/plugins/ModuleFederationPluginV2.ts
@jbroma jbroma merged commit 2e953c5 into main Jan 21, 2025
@jbroma jbroma deleted the fix/stats-null-mf2 branch January 21, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot destructure property 'time' of 'stats.toJson(...)' as it is null.

2 participants