diff --git a/crates/oxc_transformer/src/jsx/options.rs b/crates/oxc_transformer/src/jsx/options.rs index dac670dfdee8b..08ed1aa7659b1 100644 --- a/crates/oxc_transformer/src/jsx/options.rs +++ b/crates/oxc_transformer/src/jsx/options.rs @@ -61,7 +61,7 @@ pub struct JsxOptions { /// Enables `@babel/plugin-transform-react-pure-annotations`. /// - /// It will mark top-level React method calls as pure for tree shaking. + /// It will mark JSX elements and top-level React method calls as pure for tree shaking. /// /// Defaults to `true`. #[serde(default = "default_as_true")] diff --git a/napi/transform/index.d.ts b/napi/transform/index.d.ts index 75874e103b52c..d8a4fc3fc6e1b 100644 --- a/napi/transform/index.d.ts +++ b/napi/transform/index.d.ts @@ -211,7 +211,7 @@ export interface JsxOptions { /** * Enables `@babel/plugin-transform-react-pure-annotations`. * - * It will mark top-level React method calls as pure for tree shaking. + * It will mark JSX elements and top-level React method calls as pure for tree shaking. * * @see {@link https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations} * diff --git a/napi/transform/src/transformer.rs b/napi/transform/src/transformer.rs index d3c45d2b45c8f..1031e4884a59f 100644 --- a/napi/transform/src/transformer.rs +++ b/napi/transform/src/transformer.rs @@ -535,7 +535,7 @@ pub struct JsxOptions { /// Enables `@babel/plugin-transform-react-pure-annotations`. /// - /// It will mark top-level React method calls as pure for tree shaking. + /// It will mark JSX elements and top-level React method calls as pure for tree shaking. /// /// @see {@link https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations} ///