1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
denoland-deno/tests/registry/npm/@denotest/mjs-reexport-cjs/1.0.0/dist/package.cjs.js
Nathan Whitaker 9be8dce0c7
fix(node): Include "node" condition during CJS re-export analysis (#25785)
Fixes #25777.

We were missing the "node" condition, so we were resolving to the wrong
conditional export, causing our analysis to be incorrect.
2024-09-21 16:10:38 -07:00

7 lines
No EOL
264 B
JavaScript

Object.defineProperty(exports, '__esModule', { value: true });
const pkg = require("@denotest/conditional-exports-node");
Object.keys(pkg).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = pkg[k];
});