index.js
function interpolatedOptions(options, context, source, hierarchy = '') {
            Object.keys(options).forEach((key) => {
              if (typeof options[key] === 'object') {
                interpolatedOptions(options[key], context, source, `${hierarchy}.${key}`);
              }
              else if (typeof options[key] === 'string' && shouldPatchProperty(`${hierarchy}.${key}`)) {
                options[key] = utils.interpolateName(context, options[key], { content: source });
              }
            });
            return options;
          }
function interpolatedOptions(options, context, source, hierarchy = '') {
            Object.keys(options).forEach((key) => {
              if (typeof options[key] === 'object') {
                interpolatedOptions(options[key], context, source, `${hierarchy}.${key}`);
              }
              else if (typeof options[key] === 'string' && shouldPatchProperty(`${hierarchy}.${key}`)) {
                options[key] = utils.interpolateName(context, options[key], { content: source });
              }
            });
            return options;
          }
function interpolatedOptions ( options , context , source , hierarchy = '' ) { Object . keys ( options ) . forEach ( ( key ) => { if ( typeof options [ key ] === 'object' ) { interpolatedOptions ( options [ key ] , context , source , ` ${ hierarchy } ${ key } ` ) ; } else if ( typeof options [ key ] === 'string' && shouldPatchProperty ( ` ${ hierarchy } ${ key } ` ) ) { options [ key ] = utils . interpolateName ( context , options [ key ] , { content : source } ) ; } } ) ; return options ; }
Interpolating all the string values in the options object.
Interpolating all the string values in the options object .