That's a good question and I don't have the answer.So, did Morocco's economy suffer less under French colonial rule than, say, Tunisia's economy did?
It would be hard to answer properly: in Vietnam, I believe exports boomed with the French due the rubber production, but how much benefitted the people and how much the 10.000 colonists? Hard to untangle.
Morocco has definitely been more stable since Independence and is more prosperous than Tunisia, even pre-Arab spring. Would be interesting oo compare with Madagascar which was also a Lyautey/Gallieni effort