mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
test(oxc_transformer): define works differently with esbuild (#7593)
See https://github.com/oxc-project/oxc/issues/7594 --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
16adaf9afd
commit
71b3437a4c
1 changed files with 12 additions and 0 deletions
|
|
@ -59,6 +59,18 @@ 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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue