Electronic stability control (ESC) will become compulsory for all new and used vehicles imported into New Zealand by 2020, the government has said.