function resolveModuleName(base, name) {
	let stack = base.split('/');
	stack.pop();
	name.split('/').forEach((segment, i) => {
		if ( segment == '..' ) {
			stack.pop();
		} else if ( segment === '.' ) {
			// ignore
		} else {
			if ( i === 0 ) {
				stack = [];
			}
			stack.push(segment);
		}
	});
	return stack.join('/');
}
/*
 * resolves relative AMD module identifiers relative to a given base name
 */
resolves relative AMD module identifiers relative to a given base name
resolves relative AMD module identifiers relative to a given base name
function resolveModuleName(base, name) {
	let stack = base.split('/');
	stack.pop();
	name.split('/').forEach((segment, i) => {
		if ( segment == '..' ) {
			stack.pop();
		} else if ( segment === '.' ) {
		} else {
			if ( i === 0 ) {
				stack = [];
			}
			stack.push(segment);
		}
	});
	return stack.join('/');
}
function resolveModuleName ( base , name ) { let stack = base . split ( '/' ) ; stack . pop ( ) ; name . split ( '/' ) . forEach ( ( segment , i ) => { if ( segment == '..' ) { stack . pop ( ) ; } else if ( segment === '.' ) { } else { if ( i === 0 ) { stack = [ ] ; } stack . push ( segment ) ; } } ) ; return stack . join ( '/' ) ; }
resolves relative AMD module identifiers relative to a given base name
resolves relative AMD module identifiers relative to a given base name
// ignore