From ab644bd22383337d3ff10d6f4b8001dc9337c9c3 Mon Sep 17 00:00:00 2001 From: Jaap Frolich Date: Tue, 18 Jul 2023 15:30:21 +0200 Subject: [PATCH] :bug: - Warnings of root package should override deps --- src/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.rs b/src/build.rs index f824bb6..9d6db38 100644 --- a/src/build.rs +++ b/src/build.rs @@ -862,7 +862,7 @@ pub fn compile_file( let jsx_mode_args = get_jsx_mode_args(&root_package); let uncurried_args = get_uncurried_args(version, &package, &root_package); - let warning_args: Vec = match package.bsconfig.warnings.to_owned() { + let warning_args: Vec = match root_package.bsconfig.warnings.to_owned() { None => vec![], Some(warnings) => { let warn_number = match warnings.number {