Would a hardware wallet be hacked in this case
Your hardware wallet is only used to sign (approve) a transaction.
Therefore, unless someone gets direct access to your seed phrase(which will allow him to confirm transactions on your behalf) nobody can do anything with your funds.
The thing to remember is to always keep your seed phrase somewhere safe and OFFLINE.
The reason I like Trezor One is that it has a touchscreen feature. Meaning that even if your computer or phone is keylogged hacker still can't find out what your seed phrase is.
If you're interested, I have written an ultra descriptive guide about hardware wallets and Trezor vs Ledger comparison you can check out.