The rules on Two-Weapon Fighting state:
When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand.
However, the description of bonus actions states:
You choose when to take a bonus action during your turn, unless the bonus action’s timing is specified
So, can you attack with your bonus action first?
Best Answer
You can't take the bonus-action attack before the Attack action, because the bonus-action attack is conditional upon you taking that action.
You can't take the bonus-action attack before the Attack action (in which you attack with a one-handed light weapon), because the bonus-action attack is conditional upon you taking that action.
Jeremy Crawford addresses this on Twitter here (prompted by the wording of the Shield Master feat):
This contradicts a previous ruling by him via Twitter, in which he stated that, "As with most bonus actions, you choose the timing, so the Shield Master shove can come before or after the Attack action." Crawford acknowledges this change here:
And further explains his reasoning here:
As you quote, the Two-Weapon Fighting rule says:
The bonus-action attack is conditional upon you using the Attack action and attacking with a qualifying weapon. As such, you can't use your bonus-action attack before you've taken the action that qualifies you for it.