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