src/import.js
function _importDirectoryOptionsParser(options={}) {
  const _options = Object.assign({
    imports: {},
    onload: options.callback,
    extension: makeArray(options.extensions || settings.get('extensions')),
    useSyncRequire: settings.get('useSyncRequire'),
    merge: settings.get('mergeImports'),
    rescursive: false
  }, options, {
    squashErrors: !!options.retry
  });

  if (_options.extensions) delete _options.extensions;

  if (options.callback) console.warn(`The options.callback method is deprecated, please use options.onload() instead. This being used in ${getCallingFileName()}`);

  return _options;
}
function _importDirectoryOptionsParser(options={}) {
  const _options = Object.assign({
    imports: {},
    onload: options.callback,
    extension: makeArray(options.extensions || settings.get('extensions')),
    useSyncRequire: settings.get('useSyncRequire'),
    merge: settings.get('mergeImports'),
    rescursive: false
  }, options, {
    squashErrors: !!options.retry
  });

  if (_options.extensions) delete _options.extensions;

  if (options.callback) console.warn(`The options.callback method is deprecated, please use options.onload() instead. This being used in ${getCallingFileName()}`);

  return _options;
}
function _importDirectoryOptionsParser ( options = { } ) { const _options = Object . assign ( { imports : { } , onload : options . callback , extension : makeArray ( options . extensions || settings . get ( 'extensions' ) ) , useSyncRequire : settings . get ( 'useSyncRequire' ) , merge : settings . get ( 'mergeImports' ) , rescursive : false } , options , { squashErrors : ! ! options . retry } ) ; if ( _options . extensions ) delete _options . extensions ; if ( options . callback ) console . warn ( ` ${ getCallingFileName ( ) } ` ) ; return _options ; }
Parse the input options, filling-in any defaults.

@private
@param {Object} [options={}]   The options to parse.
@returns {Object}
Parse the input options filling - in any defaults .