resolver/resolve-fix.js
function replaceBackSlashes(input) {
		var isExtendedLengthPath = /^\\\\\?\\/.test(input);
		var hasNonAscii = /[^\x00-\x80]+/.test(input);

		if(isExtendedLengthPath || hasNonAscii) {
			return input;
		}

		return input.replace(/\\/g, '/');
	}
function replaceBackSlashes(input) {
		var isExtendedLengthPath = /^\\\\\?\\/.test(input);
		var hasNonAscii = /[^\x00-\x80]+/.test(input);

		if(isExtendedLengthPath || hasNonAscii) {
			return input;
		}

		return input.replace(/\\/g, '/');
	}
Replace backslashes for cross-platform usage
Adapted from https://github.com/sindresorhus/slash

@param {string} intput - value needing to have backslashes replaced in.
@returns {string}