@@ -53,7 +53,7 @@ module.exports = function(optimist, argv, convertOptions) {
5353
5454 var i ;
5555 if ( argv . config ) {
56- function getConfigExtension ( configPath ) {
56+ var getConfigExtension = function getConfigExtension ( configPath ) {
5757 for ( i = extensions . length - 1 ; i >= 0 ; i -- ) {
5858 var tmpExt = extensions [ i ] ;
5959 if ( configPath . indexOf ( tmpExt , configPath . length - tmpExt . length ) > - 1 ) {
@@ -63,7 +63,7 @@ module.exports = function(optimist, argv, convertOptions) {
6363 return path . extname ( configPath ) ;
6464 }
6565
66- function mapConfigArg ( configArg ) {
66+ var mapConfigArg = function mapConfigArg ( configArg ) {
6767 var resolvedPath = path . resolve ( configArg ) ;
6868 var extension = getConfigExtension ( resolvedPath ) ;
6969 return {
@@ -88,7 +88,7 @@ module.exports = function(optimist, argv, convertOptions) {
8888 }
8989
9090 if ( configFiles . length > 0 ) {
91- function registerCompiler ( moduleDescriptor ) {
91+ var registerCompiler = function registerCompiler ( moduleDescriptor ) {
9292 if ( moduleDescriptor ) {
9393 if ( typeof moduleDescriptor === "string" ) {
9494 require ( moduleDescriptor ) ;
@@ -107,7 +107,7 @@ module.exports = function(optimist, argv, convertOptions) {
107107 }
108108 }
109109
110- function requireConfig ( configPath ) {
110+ var requireConfig = function requireConfig ( configPath ) {
111111 var options = require ( configPath ) ;
112112 var isES6DefaultExportedFunc = (
113113 typeof options === "object" && options !== null && typeof options . default === "function"
@@ -538,7 +538,7 @@ module.exports = function(optimist, argv, convertOptions) {
538538 }
539539 ensureObject ( options , "entry" ) ;
540540
541- function addTo ( name , entry ) {
541+ var addTo = function addTo ( name , entry ) {
542542 if ( options . entry [ name ] ) {
543543 if ( ! Array . isArray ( options . entry [ name ] ) ) {
544544 options . entry [ name ] = [ options . entry [ name ] ] ;
0 commit comments