From 58d543a480463ed24de77ec155f1d7e87bb7b234 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 1 Nov 2023 19:04:54 -0400 Subject: fix(repl): jsxImportSource was not working (#21049) I made some fixes in deno_ast to make this possible and we forgot to update this. --- cli/args/flags.rs | 4 ++-- cli/args/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index e558fe391..fa1534e0c 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -417,7 +417,7 @@ pub struct Flags { pub reload: bool, pub seed: Option, pub unstable: bool, - pub unstable_bare_node_builtlins: bool, + pub unstable_bare_node_builtins: bool, pub unstable_byonm: bool, pub unstable_features: Vec, pub unsafely_ignore_certificate_errors: Option>, @@ -856,7 +856,7 @@ pub fn flags_from_vec(args: Vec) -> clap::error::Result { .push(deno_runtime::deno_cron::UNSTABLE_FEATURE_NAME.to_string()); } - flags.unstable_bare_node_builtlins = + flags.unstable_bare_node_builtins = matches.get_flag("unstable-bare-node-builtins"); flags.unstable_byonm = matches.get_flag("unstable-byonm"); diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 1d28df124..fa8d94de5 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1249,8 +1249,8 @@ impl CliOptions { self.flags.unstable } - pub fn unstable_bare_node_builtlins(&self) -> bool { - self.flags.unstable_bare_node_builtlins + pub fn unstable_bare_node_builtins(&self) -> bool { + self.flags.unstable_bare_node_builtins || self .maybe_config_file() .as_ref() -- cgit v1.2.3