There was an error while loading. Please reload this page.
1 parent 2bbf7ee commit b61443bCopy full SHA for b61443b
src/types.ts
@@ -84,5 +84,13 @@ export interface ReactCompilerConfig {
84
*/
85
ignoreUseNoForget?: boolean,
86
87
- sources?: string[] | ((filename: string) => boolean) | null
+ sources?: string[] | ((filename: string) => boolean) | null,
88
+
89
+ /*
90
+ * The minimum major version of React that the compiler should emit code for. If the target is 19
91
+ * or higher, the compiler emits direct imports of React runtime APIs needed by the compiler. On
92
+ * versions prior to 19, an extra runtime package react-compiler-runtime is necessary to provide
93
+ * a userspace approximation of runtime APIs.
94
+ */
95
+ target?: '17' | '18' | '19' | (string & {})
96
};
0 commit comments