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/lsp/documents.rs | |
parent | 806137bb96c6f7e4b359a6e979c4e22d3a04a55c (diff) |
fix: error on invalid & unsupported jsx compiler options (#19954)
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r-- | cli/lsp/documents.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index d987279de..2d3bed57a 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -1219,7 +1219,7 @@ impl Documents { }); let maybe_jsx_config = options .maybe_config_file - .and_then(|cf| cf.to_maybe_jsx_import_source_config()); + .and_then(|cf| cf.to_maybe_jsx_import_source_config().ok().flatten()); let new_resolver_config_hash = calculate_resolver_config_hash( &options.enabled_urls, options.document_preload_limit, |