Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): Fix CI #9216

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading