OLD ANSWER(INCORRECT):
Maybe you can just simply use a file in the same directory as the configuration file. And read the tsconfig using the built in fs module and parsing it using json parse.
Hope this helps.
NEW ANSWER:
I know it's quite hacky but, off the top of my head, the only solution that I can think of is you should write your component in a string
and use Bable.transform()
to transform it on the fly while the app is running. This way, you can now use the String.prototype.includes()
function to search for the React.StrictMode
JSX
element.
Hope this will help you in your project, once again, I know it's quite hacky and not the best solution.
Have a great day!