Load self referential modules from the repl and using the preload flag `-r`. In both cases the base path used for resolution is the current `process.cwd()`. Also fixes an internal cycle bug in the REPL exports resolution. PR-URL: https://github.com/nodejs/node/pull/32261 Backport-PR-URL: https://github.com/nodejs/node/pull/35385 Fixes: https://github.com/nodejs/node/issues/31595 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com>
4 lines
59 B
JavaScript
4 lines
59 B
JavaScript
'use strict'
|
|
|
|
module.exports = 'Self resolution working';
|
|
|