@@ -41,7 +41,7 @@ module.exports = function(yargs, argv, convertOptions) {
4141
4242 var i ;
4343 if ( argv . config ) {
44- function getConfigExtension ( configPath ) {
44+ var getConfigExtension = function getConfigExtension ( configPath ) {
4545 for ( i = extensions . length - 1 ; i >= 0 ; i -- ) {
4646 var tmpExt = extensions [ i ] ;
4747 if ( configPath . indexOf ( tmpExt , configPath . length - tmpExt . length ) > - 1 ) {
@@ -51,7 +51,7 @@ module.exports = function(yargs, argv, convertOptions) {
5151 return path . extname ( configPath ) ;
5252 }
5353
54- function mapConfigArg ( configArg ) {
54+ var mapConfigArg = function mapConfigArg ( configArg ) {
5555 var resolvedPath = path . resolve ( configArg ) ;
5656 var extension = getConfigExtension ( resolvedPath ) ;
5757 return {
@@ -76,7 +76,7 @@ module.exports = function(yargs, argv, convertOptions) {
7676 }
7777
7878 if ( configFiles . length > 0 ) {
79- function registerCompiler ( moduleDescriptor ) {
79+ var registerCompiler = function registerCompiler ( moduleDescriptor ) {
8080 if ( moduleDescriptor ) {
8181 if ( typeof moduleDescriptor === "string" ) {
8282 require ( moduleDescriptor ) ;
@@ -95,7 +95,7 @@ module.exports = function(yargs, argv, convertOptions) {
9595 }
9696 }
9797
98- function requireConfig ( configPath ) {
98+ var requireConfig = function requireConfig ( configPath ) {
9999 var options = require ( configPath ) ;
100100 var isES6DefaultExportedFunc = (
101101 typeof options === "object" && options !== null && typeof options . default === "function"
@@ -526,7 +526,7 @@ module.exports = function(yargs, argv, convertOptions) {
526526 }
527527 ensureObject ( options , "entry" ) ;
528528
529- function addTo ( name , entry ) {
529+ var addTo = function addTo ( name , entry ) {
530530 if ( options . entry [ name ] ) {
531531 if ( ! Array . isArray ( options . entry [ name ] ) ) {
532532 options . entry [ name ] = [ options . entry [ name ] ] ;
0 commit comments