babel-plugin-react-compiler 0.0.0-experimental-f69c469-20250424 → 0.0.0-experimental-2cd43d4-20250425
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -143224,10 +143224,21 @@ function compileProgram(program, pass) {
|
|
143224
143224
|
return null;
|
143225
143225
|
}
|
143226
143226
|
}
|
143227
|
-
(
|
143227
|
+
if (pass.opts.ignoreUseNoForget === false && optOutDirectives.length > 0) {
|
143228
|
+
for (const directive2 of optOutDirectives) {
|
143229
|
+
(_e = pass.opts.logger) == null ? void 0 : _e.logEvent(pass.filename, {
|
143230
|
+
kind: "CompileSkip",
|
143231
|
+
fnLoc: (_c = fn.node.body.loc) != null ? _c : null,
|
143232
|
+
reason: `Skipped due to '${directive2.value.value}' directive.`,
|
143233
|
+
loc: (_d = directive2.loc) != null ? _d : null
|
143234
|
+
});
|
143235
|
+
}
|
143236
|
+
return null;
|
143237
|
+
}
|
143238
|
+
(_i = pass.opts.logger) == null ? void 0 : _i.logEvent(pass.filename, {
|
143228
143239
|
kind: "CompileSuccess",
|
143229
|
-
fnLoc: (
|
143230
|
-
fnName: (
|
143240
|
+
fnLoc: (_f = fn.node.loc) != null ? _f : null,
|
143241
|
+
fnName: (_h = (_g = compileResult.compiledFn.id) == null ? void 0 : _g.name) != null ? _h : null,
|
143231
143242
|
memoSlots: compileResult.compiledFn.memoSlotsUsed,
|
143232
143243
|
memoBlocks: compileResult.compiledFn.memoBlocks,
|
143233
143244
|
memoValues: compileResult.compiledFn.memoValues,
|
@@ -143239,17 +143250,6 @@ function compileProgram(program, pass) {
|
|
143239
143250
|
} else if (pass.opts.compilationMode === "annotation") {
|
143240
143251
|
return null;
|
143241
143252
|
}
|
143242
|
-
if (pass.opts.ignoreUseNoForget === false && optOutDirectives.length > 0) {
|
143243
|
-
for (const directive2 of optOutDirectives) {
|
143244
|
-
(_i = pass.opts.logger) == null ? void 0 : _i.logEvent(pass.filename, {
|
143245
|
-
kind: "CompileSkip",
|
143246
|
-
fnLoc: (_g = fn.node.body.loc) != null ? _g : null,
|
143247
|
-
reason: `Skipped due to '${directive2.value.value}' directive.`,
|
143248
|
-
loc: (_h = directive2.loc) != null ? _h : null
|
143249
|
-
});
|
143250
|
-
}
|
143251
|
-
return null;
|
143252
|
-
}
|
143253
143253
|
if (!pass.opts.noEmit) {
|
143254
143254
|
return compileResult.compiledFn;
|
143255
143255
|
}
|
package/package.json
CHANGED