Perhaps handy for pseudo classers out there but 5.1 broke that for me and got it working again like this:
import { config, library, dom } from '@fortawesome/fontawesome-svg-core';
import { faUser } from '@fortawesome/pro-regular-svg-icons';
config.searchPseudoElements=true;
library.add(faUser);
dom.watch();