The GDP deflator is not based on a fixed market basket of goods and services. The basket is allowed to change with people's consumption and investment patterns. Therefore, new expenditure patterns are allowed to show up in the deflator as people respond to changing prices.
A simple GDP deflator formula goes like this: