function replaceLiteral(j, path) {
	const isRegex = path && path.value && path.value.regex;
	if (isRegex) {
		replaceRegex(j, path);
	} else {
		replaceString(j, path);
	}
}
/**
 * Replace AST Literal path (string or regex) with a new Literal path from replaced modules names.
 * @param j
 * @param path
 */
Replace AST Literal path (string or regex) with a new Literal path from replaced modules names.
@param j
@param path
Replace AST Literal path ( string or regex ) with a new Literal path from replaced modules names . @param j @param path
function replaceLiteral(j, path) {
	const isRegex = path && path.value && path.value.regex;
	if (isRegex) {
		replaceRegex(j, path);
	} else {
		replaceString(j, path);
	}
}
function replaceLiteral ( j , path ) { const isRegex = path && path . value && path . value . regex ; if ( isRegex ) { replaceRegex ( j , path ) ; } else { replaceString ( j , path ) ; } }
Replace AST Literal path (string or regex) with a new Literal path from replaced modules names.
Replace AST Literal path ( string or regex ) with a new Literal path from replaced modules names .