import * as webpack from 'webpack' ; import Loader = webpack . loader . Loader ; type LoaderBuilder = ( ) => Loader ; const loaderBuilder = ( ) : Loader => function ( source , sourceMap ? ) : void { this . emitWarning ( new Error ( 'show me' ) ) ; this . emitWarning ( new Error ( 'hide me' ) ) ; this . callback ( undefined , source , sourceMap ) ; return ; } ; export default loaderBuilder ( ) ;