diff --git a/apps/oxfmt/src/core/config.rs b/apps/oxfmt/src/core/config.rs index 23f5f8307e92e..e273c4dfb0bc1 100644 --- a/apps/oxfmt/src/core/config.rs +++ b/apps/oxfmt/src/core/config.rs @@ -51,7 +51,7 @@ pub fn resolve_editorconfig_path(cwd: &Path) -> Option { pub enum ResolvedOptions { /// For JS/TS files formatted by oxc_formatter. OxcFormatter { - format_options: FormatOptions, + format_options: Box, /// For embedded language formatting (e.g., CSS in template literals) external_options: Value, insert_final_newline: bool, @@ -199,7 +199,7 @@ impl ConfigResolver { match strategy { FormatFileStrategy::OxcFormatter { .. } => ResolvedOptions::OxcFormatter { - format_options, + format_options: Box::new(format_options), external_options, insert_final_newline, }, diff --git a/apps/oxfmt/src/core/format.rs b/apps/oxfmt/src/core/format.rs index 05185ef0d2220..fd3531d6822e8 100644 --- a/apps/oxfmt/src/core/format.rs +++ b/apps/oxfmt/src/core/format.rs @@ -61,7 +61,7 @@ impl SourceFormatter { source_text, path, *source_type, - format_options, + *format_options, external_options, ), insert_final_newline,