replaceModule

fun replaceModule(module: String, replacementPath: String)

Replace the specified built-in CommonJS module with a module at the replacementPath.