File tree Expand file tree Collapse file tree 3 files changed +38
-11
lines changed
binding_minifier_wasm/src Expand file tree Collapse file tree 3 files changed +38
-11
lines changed Original file line number Diff line number Diff line change @@ -887,14 +887,23 @@ export interface ReactConfig {
887
887
};
888
888
889
889
/**
890
- * jsx runtime
890
+ * Decides which runtime to use when transforming JSX.
891
+ * - `"automatic"` - Automatically imports the functions that JSX transpiles to.
892
+ * This is the modern approach introduced in React 17+ that eliminates the need to
893
+ * manually import React in every file that uses JSX.
894
+ * - `"classic"` - Uses the traditional JSX transform that relies on `React.createElement`
895
+ * calls. Requires React to be in scope, which was the standard behavior before React 17.
896
+ * - `"preserve"` - Leaves JSX syntax unchanged without transforming it.
897
+ * @default "classic"
891
898
*/
892
- runtime?: ' automatic' | ' classic'
899
+ runtime?: " automatic" | " classic" | "preserve";
893
900
894
901
/**
895
- * Declares the module specifier to be used for importing the `jsx` and `jsxs` factory functions when using `runtime` 'automatic'
902
+ * Declares the module specifier to be used for importing the `jsx` and `jsxs` factory
903
+ * functions when using `runtime` 'automatic'
904
+ * @default "react"
896
905
*/
897
- importSource?: string
906
+ importSource?: string;
898
907
}
899
908
/**
900
909
* - `import { DEBUG } from '@ember/env-flags';`
Original file line number Diff line number Diff line change @@ -888,14 +888,23 @@ export interface ReactConfig {
888
888
};
889
889
890
890
/**
891
- * jsx runtime
891
+ * Decides which runtime to use when transforming JSX.
892
+ * - `"automatic"` - Automatically imports the functions that JSX transpiles to.
893
+ * This is the modern approach introduced in React 17+ that eliminates the need to
894
+ * manually import React in every file that uses JSX.
895
+ * - `"classic"` - Uses the traditional JSX transform that relies on `React.createElement`
896
+ * calls. Requires React to be in scope, which was the standard behavior before React 17.
897
+ * - `"preserve"` - Leaves JSX syntax unchanged without transforming it.
898
+ * @default "classic"
892
899
*/
893
- runtime?: ' automatic' | ' classic'
900
+ runtime?: " automatic" | " classic" | "preserve";
894
901
895
902
/**
896
- * Declares the module specifier to be used for importing the `jsx` and `jsxs` factory functions when using `runtime` 'automatic'
903
+ * Declares the module specifier to be used for importing the `jsx` and `jsxs` factory
904
+ * functions when using `runtime` 'automatic'
905
+ * @default "react"
897
906
*/
898
- importSource?: string
907
+ importSource?: string;
899
908
}
900
909
/**
901
910
* - `import { DEBUG } from '@ember/env-flags';`
Original file line number Diff line number Diff line change @@ -945,12 +945,21 @@ export interface ReactConfig {
945
945
} ;
946
946
947
947
/**
948
- * jsx runtime
948
+ * Decides which runtime to use when transforming JSX.
949
+ * - `"automatic"` - Automatically imports the functions that JSX transpiles to.
950
+ * This is the modern approach introduced in React 17+ that eliminates the need to
951
+ * manually import React in every file that uses JSX.
952
+ * - `"classic"` - Uses the traditional JSX transform that relies on `React.createElement`
953
+ * calls. Requires React to be in scope, which was the standard behavior before React 17.
954
+ * - `"preserve"` - Leaves JSX syntax unchanged without transforming it.
955
+ * @default "classic"
949
956
*/
950
- runtime ?: "automatic" | "classic" ;
957
+ runtime ?: "automatic" | "classic" | "preserve" ;
951
958
952
959
/**
953
- * Declares the module specifier to be used for importing the `jsx` and `jsxs` factory functions when using `runtime` 'automatic'
960
+ * Declares the module specifier to be used for importing the `jsx` and `jsxs` factory
961
+ * functions when using `runtime` 'automatic'
962
+ * @default "react"
954
963
*/
955
964
importSource ?: string ;
956
965
}
You can’t perform that action at this time.
0 commit comments