diff --git a/crates/oxc_transformer/src/react/jsx/diagnostics.rs b/crates/oxc_transformer/src/react/diagnostics.rs similarity index 100% rename from crates/oxc_transformer/src/react/jsx/diagnostics.rs rename to crates/oxc_transformer/src/react/diagnostics.rs diff --git a/crates/oxc_transformer/src/react/display_name/mod.rs b/crates/oxc_transformer/src/react/display_name.rs similarity index 100% rename from crates/oxc_transformer/src/react/display_name/mod.rs rename to crates/oxc_transformer/src/react/display_name.rs diff --git a/crates/oxc_transformer/src/react/jsx/mod.rs b/crates/oxc_transformer/src/react/jsx.rs similarity index 99% rename from crates/oxc_transformer/src/react/jsx/mod.rs rename to crates/oxc_transformer/src/react/jsx.rs index 46a02711acefd6..3938f891940a80 100644 --- a/crates/oxc_transformer/src/react/jsx/mod.rs +++ b/crates/oxc_transformer/src/react/jsx.rs @@ -1,5 +1,3 @@ -mod diagnostics; - use std::{cell::Cell, rc::Rc}; use oxc_allocator::Vec; @@ -18,6 +16,7 @@ use crate::{ helpers::module_imports::NamedImport, }; +use super::diagnostics; use super::utils::get_line_column; pub use super::{ jsx_self::ReactJsxSelf, diff --git a/crates/oxc_transformer/src/react/jsx_self/mod.rs b/crates/oxc_transformer/src/react/jsx_self.rs similarity index 100% rename from crates/oxc_transformer/src/react/jsx_self/mod.rs rename to crates/oxc_transformer/src/react/jsx_self.rs diff --git a/crates/oxc_transformer/src/react/jsx_source/mod.rs b/crates/oxc_transformer/src/react/jsx_source.rs similarity index 100% rename from crates/oxc_transformer/src/react/jsx_source/mod.rs rename to crates/oxc_transformer/src/react/jsx_source.rs diff --git a/crates/oxc_transformer/src/react/mod.rs b/crates/oxc_transformer/src/react/mod.rs index 4df990f1ac4fa2..0beacfc67fdce9 100644 --- a/crates/oxc_transformer/src/react/mod.rs +++ b/crates/oxc_transformer/src/react/mod.rs @@ -1,3 +1,4 @@ +mod diagnostics; mod display_name; mod jsx; mod jsx_self;