Skip to content

Commit

Permalink
chore: replace deprecated swc type
Browse files Browse the repository at this point in the history
  • Loading branch information
jwong101 committed Jul 2, 2024
1 parent 5166d2e commit 9e567c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fsrt/src/forge_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
use std::sync::Arc;
use swc_core::common::{Globals, Mark, SourceFile, SourceMap, GLOBALS};
use swc_core::ecma::ast::EsVersion;
use swc_core::ecma::parser::{parse_file_as_module, Syntax, TsConfig};
use swc_core::ecma::parser::{parse_file_as_module, Syntax, TsSyntax};
use swc_core::ecma::transforms::base::resolver;
use swc_core::ecma::visit::FoldWith;
use tracing::debug;
Expand Down Expand Up @@ -38,7 +38,7 @@ pub(crate) trait ForgeProjectTrait<'a> {
let mut recovered_errors = vec![];
let module = parse_file_as_module(
src.as_ref(),
Syntax::Typescript(TsConfig {
Syntax::Typescript(TsSyntax {
tsx: true,
decorators: true,
..Default::default()
Expand Down

0 comments on commit 9e567c8

Please sign in to comment.