Unverified Commit 38998d85 authored by Anna Henningsen's avatar Anna Henningsen
Browse files

module: do not warn when accessing `__esModule` of unfinished exports

Since this property access is performed by generated code, and not
used for accessing the actual exports of a module (and because
transpilers generally define it as the first key of `module.exports`
when it *is* present), it should be okay to allow it.

Refs: https://github.com/nodejs/node/pull/29935
Fixes: https://github.com/nodejs/node/issues/33046

PR-URL: https://github.com/nodejs/node/pull/33048


Reviewed-By: default avatarGuy Bedford <guybedford@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarZeyu Yang <himself65@outlook.com>
parent b2768ae1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment