Profit or not, most manufacturers are facing a future where they won't have the choice to produce electric cars. As mentioned, China is looking into banning gas vehicles. Britain, France, Germany, India, Norway, Austria, Denmark, Ireland, Japan, the Netherlands, Portugal, South Korea and Spain have all set targets or even laws mandating all car sales being electric within the next 25 years.
Consider this point, several years ago, one prominent engineer in the auto industry stated that cars (even pickup trucks) could all easily have been designed to be 50+ miles per gallon fuel efficiency within a decade's time if it was mandated by the government. Translation: they will find a way to make it work AND make it profitable.