When require(esm) encounters a cached module job that is instantiated but not yet evaluated, run the evaluation. This catches an edge case previously missed in https://github.com/nodejs/node/pull/57187. PR-URL: https://github.com/nodejs/node/pull/58067 Fixes: https://github.com/nodejs/node/issues/58061 Reviewed-By: Jacob Smith <jacob@frende.me>
3 lines
71 B
JavaScript
3 lines
71 B
JavaScript
const foo = 1;
|
|
export default foo;
|
|
export { foo as 'module.exports' };
|