Skip to content

Commit

Permalink
fix: skip serialize mf manifest remoteEntry if none
Browse files Browse the repository at this point in the history
  • Loading branch information
xusd320 committed Feb 7, 2025
1 parent 6179982 commit f9e1174
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/mako/src/plugins/module_federation/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ pub struct ManifestMetaTypes {
#[derive(Serialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct ManifestMetaData {
#[serde(skip_serializing_if = "Option::is_none")]
pub remote_entry: Option<ManifestMetaRemoteEntry>,
pub global_name: String,
pub public_path: String,
Expand Down

0 comments on commit f9e1174

Please sign in to comment.