Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: Donny/강동윤 <[email protected]>
  • Loading branch information
timneutkens and kdy1 committed May 24, 2024
1 parent 7b52e63 commit 028c673
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/turbopack-ecmascript/src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ impl EcmascriptInputTransform {
match self {
EcmascriptInputTransform::GlobalTypeofs { window_value } => {
let mut typeofs: AHashMap<JsWord, JsWord> = Default::default();
let val = window_value.to_owned();
typeofs.insert("window".into(), JsWord::from(val));
typeofs.insert("window".into(), JsWord::from(&**window_value));

program.visit_mut_with(&mut inline_globals2(
Default::default(),
Expand Down

0 comments on commit 028c673

Please sign in to comment.