Best recommendation is to install the third-party components on the target SharePoint first, and then copy over the content itself using Content Matrix.
Note: This is not a supported scenario and should be treated as best-effort only. For migrations to SPO, the only potential option would be to pre-provision the custom components in advance and then migrate the content.