esnode/plugin.js
// Analyze and transform after compilation of declarations.
Analyze and transform after compilation of declarations.
Analyze and transform after compilation of declarations .
afterDeclarations(context) {
            return (sourceFile) => {
                logger_1.logger.debug(chalk_1.default.gray(`* ${sourceFile.fileName} [d.ts]`));
                return ts.visitNode(sourceFile, visitor_1.visitorFactory({ program, context, sourceFile, pluginConfig }));
            };
        }
afterDeclarations ( context ) { return ( sourceFile ) => { logger_1 . logger . debug ( chalk_1 . default . gray ( ` ${ sourceFile . fileName } ` ) ) ; return ts . visitNode ( sourceFile , visitor_1 . visitorFactory ( { program , context , sourceFile , pluginConfig } ) ) ; } ; }
Analyze and transform after compilation of declarations.
Analyze and transform after compilation of declarations .
// Visit each node try to find aliases and replace with proper path.