File tree 2 files changed +8
-0
lines changed
babel-plugin-react-compiler/src/HIR 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,8 @@ const EnvironmentConfigSchema = z.object({
249
249
*/
250
250
enableOptionalDependencies : z . boolean ( ) . default ( true ) ,
251
251
252
+ enableFire : z . boolean ( ) . default ( false ) ,
253
+
252
254
/**
253
255
* Enables inference and auto-insertion of effect dependencies. Takes in an array of
254
256
* configurable module and import pairs to allow for user-land experimentation. For example,
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ function makePluginOptions(
58
58
let validatePreserveExistingMemoizationGuarantees = false ;
59
59
let customMacros : null | Array < Macro > = null ;
60
60
let validateBlocklistedImports = null ;
61
+ let enableFire = false ;
61
62
let target : CompilerReactTarget = '19' ;
62
63
63
64
if ( firstLine . indexOf ( '@compilationMode(annotation)' ) !== - 1 ) {
@@ -129,6 +130,10 @@ function makePluginOptions(
129
130
validatePreserveExistingMemoizationGuarantees = true ;
130
131
}
131
132
133
+ if ( firstLine . includes ( '@enableFire' ) ) {
134
+ enableFire = true ;
135
+ }
136
+
132
137
const hookPatternMatch = / @ h o o k P a t t e r n : " ( [ ^ " ] + ) " / . exec ( firstLine ) ;
133
138
if (
134
139
hookPatternMatch &&
@@ -207,6 +212,7 @@ function makePluginOptions(
207
212
hookPattern,
208
213
validatePreserveExistingMemoizationGuarantees,
209
214
validateBlocklistedImports,
215
+ enableFire,
210
216
} ,
211
217
compilationMode,
212
218
logger,
You can’t perform that action at this time.
0 commit comments