From c7991686666dcfbe9996ed0b145222635615cf79 Mon Sep 17 00:00:00 2001 From: Aron Puddy Date: Mon, 8 Apr 2024 23:22:04 +0930 Subject: [PATCH] pass features thru to cargo on dx bundle (#2271) --- packages/cli/src/cli/bundle.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/src/cli/bundle.rs b/packages/cli/src/cli/bundle.rs index 13a66d855..034d8fbb7 100644 --- a/packages/cli/src/cli/bundle.rs +++ b/packages/cli/src/cli/bundle.rs @@ -86,6 +86,10 @@ impl Bundle { crate_config.extend_with_platform(platform); } + if let Some(features) = self.build.features { + crate_config.set_features(features); + } + // build the desktop app // Since the `bundle()` function is only run for the desktop platform, // the `rust_flags` argument is set to `None`.