function replaceTemplate(j, path) {
	const { raw, cooked } = path.value.value;
	const tail = path.value.tail;
	const adaptedCooked = replaceTalendUiLibs(cooked);
	const adaptedRaw = replaceTalendUiLibs(raw);
	if (raw !== adaptedRaw || cooked !== adaptedCooked) {
		j(path).replaceWith(j.templateElement(
			{ cooked: adaptedCooked, raw: adaptedRaw },
			tail
		));
	}
}
/**
 * Replace AST template path with a new template path from replaced module names.
 * @param j
 * @param path
 */
Replace AST template path with a new template path from replaced module names.
@param j
@param path
Replace AST template path with a new template path from replaced module names . @param j @param path
function replaceTemplate(j, path) {
	const { raw, cooked } = path.value.value;
	const tail = path.value.tail;
	const adaptedCooked = replaceTalendUiLibs(cooked);
	const adaptedRaw = replaceTalendUiLibs(raw);
	if (raw !== adaptedRaw || cooked !== adaptedCooked) {
		j(path).replaceWith(j.templateElement(
			{ cooked: adaptedCooked, raw: adaptedRaw },
			tail
		));
	}
}
function replaceTemplate ( j , path ) { const { raw , cooked } = path . value . value ; const tail = path . value . tail ; const adaptedCooked = replaceTalendUiLibs ( cooked ) ; const adaptedRaw = replaceTalendUiLibs ( raw ) ; if ( raw !== adaptedRaw || cooked !== adaptedCooked ) { j ( path ) . replaceWith ( j . templateElement ( { cooked : adaptedCooked , raw : adaptedRaw } , tail ) ) ; } }
Replace AST template path with a new template path from replaced module names.
Replace AST template path with a new template path from replaced module names .