mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
38998d8538
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: Guy Bedford <guybedford@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
3 lines
71 B
JavaScript
3 lines
71 B
JavaScript
const a = require('./warning-esm-half-transpiled-a.js');
|
|
a.__esModule;
|