diff --git a/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs b/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs index 289aa8bafdb27..a31d5011207d1 100644 --- a/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs +++ b/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs @@ -254,6 +254,8 @@ log(__OBJECT__); 4; log(__STRING__); 5; +__OBJECT__.hello; +6; " .trim_start(); diff --git a/crates/oxc_transformer/tests/integrations/plugins/snapshots/integrations__plugins__replace_global_defines__test_sourcemap.snap b/crates/oxc_transformer/tests/integrations/plugins/snapshots/integrations__plugins__replace_global_defines__test_sourcemap.snap index 6e5b0696ada52..25a29b1fa3c70 100644 --- a/crates/oxc_transformer/tests/integrations/plugins/snapshots/integrations__plugins__replace_global_defines__test_sourcemap.snap +++ b/crates/oxc_transformer/tests/integrations/plugins/snapshots/integrations__plugins__replace_global_defines__test_sourcemap.snap @@ -15,3 +15,6 @@ snapshot_kind: text (7:0) "log(__STRING__)" --> (7:0) "log('development')" (7:15) ";\n" --> (7:18) ";\n" (8:0) "5;\n" --> (8:0) "5;\n" +(9:0) "__OBJECT__." --> (9:0) "({ 'hello': 'test' })." +(9:11) "hello;\n" --> (9:22) "hello;\n" +(10:0) "6;\n" --> (10:0) "6;\n"