diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-27 12:15:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 12:15:39 -0400 |
commit | 02d6bbff2c72817c9a9d6346b4bfd8ed25379ea3 (patch) | |
tree | 1eca00e8410da689286f6f60cfaae381dfbb2e4e /cli/args/mod.rs | |
parent | 806137bb96c6f7e4b359a6e979c4e22d3a04a55c (diff) |
fix: error on invalid & unsupported jsx compiler options (#19954)
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index a979aa10c..68cd3faa7 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -914,11 +914,11 @@ impl CliOptions { /// Return the JSX import source configuration. pub fn to_maybe_jsx_import_source_config( &self, - ) -> Option<JsxImportSourceConfig> { - self - .maybe_config_file - .as_ref() - .and_then(|c| c.to_maybe_jsx_import_source_config()) + ) -> Result<Option<JsxImportSourceConfig>, AnyError> { + match self.maybe_config_file.as_ref() { + Some(config) => config.to_maybe_jsx_import_source_config(), + None => Ok(None), + } } /// Return any imports that should be brought into the scope of the module |