Since React Compiler strips out comments // di-ignore comments are removed
The solution here might be to use "use strict" style string directives or similar that aren't removed, similar to how React Compiler uses "use no memo" at the top of the function scope.