function createResolver(options) {
	return (moduleId, base)=>new Promise((resolve, reject)=>{
		const resolver = new Resolver(options.resolver?options.resolver:{});
		resolver.resolve(moduleId, base, (err, absolutePath)=>{
			if (err) {
				if (options.debugVcjd) debug(`Could not resolve path to module: ${moduleId}\n\tfrom base: ${base}`);
				return reject(err);
			}
			if (options.debugVcjd) debug(`Resolved module: ${moduleId}:\n\tfrom base: ${base}\n\t:is: ${base}`);
			return resolve(absolutePath);
		});
	})
}
function createResolver(options) {
	return (moduleId, base)=>new Promise((resolve, reject)=>{
		const resolver = new Resolver(options.resolver?options.resolver:{});
		resolver.resolve(moduleId, base, (err, absolutePath)=>{
			if (err) {
				if (options.debugVcjd) debug(`Could not resolve path to module: ${moduleId}\n\tfrom base: ${base}`);
				return reject(err);
			}
			if (options.debugVcjd) debug(`Resolved module: ${moduleId}:\n\tfrom base: ${base}\n\t:is: ${base}`);
			return resolve(absolutePath);
		});
	})
}
function createResolver ( options ) { return ( moduleId , base ) => new Promise ( ( resolve , reject ) => { const resolver = new Resolver ( options . resolver ? options . resolver : { } ) ; resolver . resolve ( moduleId , base , ( err , absolutePath ) => { if ( err ) { if ( options . debugVcjd ) debug ( ` ${ moduleId } \n \t ${ base } ` ) ; return reject ( err ) ; } if ( options . debugVcjd ) debug ( ` ${ moduleId } \n \t ${ base } \n \t ${ base } ` ) ; return resolve ( absolutePath ) ; } ) ; } ) }
Create a async-resolver from the given options and return as promise-wrapped function.

@param {Object} options				Options object.
@returns {Function.<Promise>}		Resolver function.
Create a async - resolver from the given options and return as promise - wrapped function .