diff --git a/crates/binding_options/src/options/mod.rs b/crates/binding_options/src/options/mod.rs index 258b40c..b6dacbc 100644 --- a/crates/binding_options/src/options/mod.rs +++ b/crates/binding_options/src/options/mod.rs @@ -83,7 +83,10 @@ impl RSPackRawOptions { let node = self.node.map(|n| n.into()); // Add custom plugins. - plugins.push(Box::new(plugin_manifest::ManifestPlugin::new())); + if self.features.assets_manifest.unwrap_or_default() { + plugins.push(Box::new(plugin_manifest::ManifestPlugin::new())); + } + let mut builtins = self.builtins.apply(plugins)?; if experiments.rspack_future.new_treeshaking { builtins.tree_shaking = TreeShaking::False; diff --git a/crates/binding_options/src/options/raw_features.rs b/crates/binding_options/src/options/raw_features.rs index 265a840..2caeefc 100644 --- a/crates/binding_options/src/options/raw_features.rs +++ b/crates/binding_options/src/options/raw_features.rs @@ -190,4 +190,5 @@ pub struct RawStrategyOptions { #[napi(object)] pub struct RawFeatures { pub split_chunks_strategy: Option, + pub assets_manifest: Option, }