pub fn cjs_export_names(file: &Path, seen: &mut HashSet<PathBuf>) -> Vec<String>Expand description
The names an import { … } of a CommonJS module may use: the exports
node’s cjs-module-lexer detects statically, without running the module —
exports.x = …, module.exports.x = …, Object.defineProperty(exports, "x", …), the keys of a module.exports = { a, b: … } literal — plus the
names of a module it re-exports through module.exports = require("…").