diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-23 19:04:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 19:04:29 +0200 |
commit | c3c16f025ca6f30f3faaa70481a125494ddcea87 (patch) | |
tree | 1c2f4ba66838f1177ce01546426c5fea7e73869c /cli/swc_util.rs | |
parent | 94f1de5f805638b7bc06ac36b7fb8adb568c7a25 (diff) |
fix: TSX analysis in module graph loader (#5785)
Diffstat (limited to 'cli/swc_util.rs')
-rw-r--r-- | cli/swc_util.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/swc_util.rs b/cli/swc_util.rs index d3b2a9e4a..465fb9769 100644 --- a/cli/swc_util.rs +++ b/cli/swc_util.rs @@ -147,6 +147,7 @@ impl AstParser { let mut ts_config = TsConfig::default(); ts_config.dynamic_import = true; ts_config.decorators = true; + ts_config.tsx = true; let syntax = Syntax::Typescript(ts_config); let lexer = Lexer::new( |