Mix all ingredients together (except garlic and chili) in a small mixing bowl and whisk until sugar is dissolved completely.
Add garlic and its juice (if any) and chili afterward. Give the sauce a few stirs so the minced garlic can release its fragrance into the dipping sauce.
Store in an airtight container in the fridge for up to one week.