Dragons RFC trio Aaron Wainwright, Rio Dyer and Elliot Dee all featured as Wales forced Ireland to dig deep to extend their Guinness Six Nations winning streak to equal England’s record of 11 in a row at the Aviva Stadium.
Dan Sheehan's opening try and a James Lowe score had the hosts 17-0 up after a dominant first-half display.
Welsh hopes of a shock win were boosted when they were awarded a penalty try early in the second half as Ireland's Tadhg Beirne was sin-binned.
But Ciaran Frawley eased home nerves before Beirne bagged the bonus point.
The win means Ireland have equalled England's Six Nations record of 11 consecutive victories and remain on course to become the first team since France in 1998 to secure back-to-back Grand Slams.