Wash the basil thoroughly and remove any moisture.
Finely chop the onion.
Heat olive oil in a pan and sauté the onion.
Add the rice and cook until it turns translucent.
Pour in the white wine and let the alcohol evaporate.
Gradually add the stock while stirring until the rice is cooked.
Mix in basil pesto and Parmesan cheese.
Season with salt and pepper to taste.