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 34b0a87adff6b..299d22ef8ee0e 100644 --- a/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs +++ b/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs @@ -59,6 +59,14 @@ fn dot() { test("process['env'].NODE_ENV", "production", config.clone()); } +#[ignore] +#[test] +fn dot_with_overlap() { + let config = ReplaceGlobalDefinesConfig::new(&[("import.meta.env.FOO", "import.meta.env.FOO"), ("import.meta.env", "__foo__")]).unwrap(); + test("import.meta.env", "__foo__", config.clone()); + test("import.meta.env.NODE_ENV", "import.meta.env.NODE_ENV", config.clone()); +} + #[test] fn dot_nested() { let config = ReplaceGlobalDefinesConfig::new(&[("process", "production")]).unwrap();