lib/module-analyser.js
function extractInfoFromAst( ast ) {
    const output = {
        requires: [],
        exports: findExports( ast )
    };
    recursivelyExtractInfoFromAst( ast.program.body, output );
    return output;
}
function extractInfoFromAst( ast ) {
    const output = {
        requires: [],
        exports: findExports( ast )
    };
    recursivelyExtractInfoFromAst( ast.program.body, output );
    return output;
}
function extractInfoFromAst ( ast ) { const output = { requires : [ ] , exports : findExports ( ast ) } ; recursivelyExtractInfoFromAst ( ast . program . body , output ) ; return output ; }
Try to figure oout which modules are needed from this javascript code.
@param {object} ast - Abstract Syntax Tree from Babel.
@returns {object} `{ requires: [] }`.
Try to figure oout which modules are needed from this javascript code .