The module.require() method provides a way to load a module as if require() was called from the original module.
method
module.default.require
id: string
): any;
method
The module.require() method provides a way to load a module as if require() was called from the original module.