Skip to content

Commit

Permalink
Update printer.rs (#4303)
Browse files Browse the repository at this point in the history
Summary:
enable tsx on relay resolvers

Pull Request resolved: #4303

Reviewed By: josephsavona

Differential Revision: D45660661

Pulled By: captbaritone

fbshipit-source-id: 12d2d65eee340bda7d66cbd95a75cbde58defaeb
  • Loading branch information
sibelius authored and facebook-github-bot committed May 9, 2023
1 parent a02b706 commit 3c44796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/crates/relay-codegen/src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ fn get_module_path(js_module_format: JsModuleFormat, key: StringKey) -> Cow<'sta
let extension = path.extension();

if let Some(extension) = extension {
if extension == "ts" || extension == "js" {
if extension == "ts" || extension == "tsx" || extension == "js" {
let path_without_extension = path.with_extension("");

let path_without_extension = path_without_extension
Expand Down

0 comments on commit 3c44796

Please sign in to comment.