Open loynoir opened 1 year ago
https://github.com/loynoir/reproduce-node-47971
$ node ./test/test-require.cjs waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') { plugin: [Module: null prototype] { foo: [Function: foo] } }
$ node ./test/test-import.mjs waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') ... # endless loop ...
$ node ./test/test-createRequire.mjs waiting import('./plugin.mjs') waiting import('./plugin.mjs') waiting import('./plugin.mjs') ... # endless loop ...
https://github.com/nodejs/node/issues/47971
Reproduce
https://github.com/loynoir/reproduce-node-47971
Expected
Actual
Related
https://github.com/nodejs/node/issues/47971