Fork of esm with some useful patches:
- Adam Thornburn's fix for mixed esm-cjs graphs
- Jonathan Grimes' tweak ups
- added
.cjs
to allowed extensions - supported
node:
-prefixed modules - bumped deps, fixed some vulnerabilities
node -r @qiwi/esm main.js
// Set options as a parameter, environment variable, or rc file.
require = require("@qiwi/esm")(module/*, options*/)
module.exports = require("./main.js")