File tree Expand file tree Collapse file tree 4 files changed +0
-122
lines changed
babel-plugin-react-compiler/src
__tests__/fixtures/compiler Expand file tree Collapse file tree 4 files changed +0
-122
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,6 @@ export type PluginOptions = {
87
87
*/
88
88
compilationMode : CompilationMode ;
89
89
90
- /*
91
- * If enabled, Forget will import `useMemoCache` from the given module
92
- * instead of `react/compiler-runtime`.
93
- *
94
- * ```
95
- * // If set to "react-compiler-runtime"
96
- * import {c as useMemoCache} from 'react-compiler-runtime';
97
- * ```
98
- */
99
- runtimeModule ?: string | null | undefined ;
100
-
101
90
/**
102
91
* By default React Compiler will skip compilation of code that suppresses the default
103
92
* React ESLint rules, since this is a strong indication that the code may be breaking React rules
@@ -214,7 +203,6 @@ export const defaultOptions: PluginOptions = {
214
203
logger : null ,
215
204
gating : null ,
216
205
noEmit : false ,
217
- runtimeModule : null ,
218
206
eslintSuppressionRules : null ,
219
207
flowSuppressions : true ,
220
208
ignoreUseNoForget : false ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ function makePluginOptions(
48
48
let enableEmitFreeze = null ;
49
49
let enableEmitHookGuards = null ;
50
50
let compilationMode : CompilationMode = 'all' ;
51
- let runtimeModule = null ;
52
51
let panicThreshold : PanicThresholdOptions = 'all_errors' ;
53
52
let hookPattern : string | null = null ;
54
53
// TODO(@mofeiZ) rewrite snap fixtures to @validatePreserveExistingMemo:false
@@ -104,10 +103,6 @@ function makePluginOptions(
104
103
importSpecifierName : '$dispatcherGuard' ,
105
104
} ;
106
105
}
107
- const runtimeModuleMatch = / @ r u n t i m e M o d u l e = " ( [ ^ " ] + ) " / . exec ( firstLine ) ;
108
- if ( runtimeModuleMatch ) {
109
- runtimeModule = runtimeModuleMatch [ 1 ] ;
110
- }
111
106
112
107
const targetMatch = / @ t a r g e t = " ( [ ^ " ] + ) " / . exec ( firstLine ) ;
113
108
if ( targetMatch ) {
@@ -251,7 +246,6 @@ function makePluginOptions(
251
246
gating,
252
247
panicThreshold,
253
248
noEmit : false ,
254
- runtimeModule,
255
249
eslintSuppressionRules,
256
250
flowSuppressions,
257
251
ignoreUseNoForget,
You can’t perform that action at this time.
0 commit comments