In order to be able to inline requires in code that still contains import/export, types, etc; we need to avoid it crashing when an unsupported inlinement happens. We also make sure to not fully remove the require if it happens, which means that code will still work if the require is really needed.
In order to be able to inline requires in code that still contains
import
/export
, types, etc; we need to avoid it crashing when an unsupported inlinement happens. We also make sure to not fully remove therequire
if it happens, which means that code will still work if therequire
is really needed.