Skip to content

Commit

Permalink
fix(ci): Fix CI of `peff (#9216)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Jul 12, 2024
1 parent f64f8d6 commit b7aaaf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/swc_ecma_transforms_typescript/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,9 @@ impl Transform {
// NOTE: This is not correct!
// However, all unresolved_span are used in TsImportExportAssignConfig::Classic
// which is deprecated and not used in real world.
let top_level_ctxt = self.top_level_ctxt;
let cjs_require = quote_ident!(top_level_ctxt, "require");
let cjs_exports = quote_ident!(top_level_ctxt, "exports");
let unresolved_ctxt = self.unresolved_ctxt;
let cjs_require = quote_ident!(unresolved_ctxt, "require");
let cjs_exports = quote_ident!(unresolved_ctxt, "exports");

let mut cjs_export_assign = None;

Expand Down Expand Up @@ -1162,7 +1162,7 @@ impl Transform {
expr.make_assign_to(
op!("="),
member_expr!(
top_level_ctxt,
unresolved_ctxt,
Default::default(),
module.exports
)
Expand Down

0 comments on commit b7aaaf9

Please sign in to comment.