This is a test of the PR at nodejs/node#33416, that attempts to detect named exports from CommonJS using a lexing approach.
To run this test yourself:
-
Check out the branch from that PR and build Node.
-
Check out this repo, and run the following where
../node/node
is the path to the Node executable you just built in the previous step:
../node/node --unhandled-rejections=strict main.js
When you run the test, most of the top 3,000 packages from the NPM registry will be installed in a subfolder, and then both require
d and import
ed, with the names compared between the two loaded packages.