The creator of Huy Fong Foods’ Sriracha hot sauce says that his company might have gone bankrupt if the city of Irwindale had successfully stopped production at the facility in response to odor complaints from nearby residents.

According to a statement issued to The Los Angeles Times on Friday, Huy Fong Foods would have suffered a $10-million loss if a judge had granted the city’s request for a temporary restraining order. The judge denied the city’s request for the order at a hearing Oct. 31. A Nov. 22 hearing will determine whether the city’s request for a preliminary injunction to stop operations at the factory is granted.

David Tran’s comments were the most combative so far in a highly publicized conflict during which the company has largely kept the tone of its public statements conciliatory.

“Suppose if the city chose never to issue another business license to the company? Who would be left to run this company’s operations? The city of Irwindale?” the chief executive said in the statement.

Irwindale city officials said they have to take all necessary actions to combat what some residents say is a serious public health issue. They received reports of burned eyes and inflamed asthma, and one family said an entire birthday party fled indoors after the spicy smell descended on the festivities.

“Given how long it’s going on, we had no choice but to institute this action,” Irwindale City Atty. Fred Galante said.

Tran accused the city of acting “severely toward us without conducting a real investigation” when it requested that the entire facility be shut down. Inspectors from the South Coast Air Quality Management District have visited the plant several times without issuing a citation. Tran said in court documents that the complaints about the smell originated with an Irwindale city councilman’s son.

Huy Fong Foods decided to locate its factory in Irwindale three years ago when the city offered a loan with “irresistible” terms: Pay only interest for 10 years, with a balloon payment at the end.

The company took the loan and contributed $250,000 to Irwindale each year as part of the deal, Tran said. The company then built a $40-million factory that at full capacity could generate about $300 million a year in sales, according to Tran’s statements. But after complaints about the smell began last year, Tran said he began to get an “odd feeling” about the city’s behavior. In response, the company has taken out a loan with less favorable terms from East West Bank to pay off the city loan.

Because its hot sauce is made with fresh chiles that are harvested, ground and processed within the same day, Huy Fong Foods has a delicate, three-month-long production cycle that typically begins in September. Interrupting the process could force the company to leave the chiles to rot in the fields and jeopardize next year’s supply of hot sauce.

Over the last decade, Sriracha hot sauce has achieved what might be called rock-star status among condiments, spawning a documentary, a food festival, a cookbook and a special flavor of Lay’s potato chips. Reports of a potential shortage sent shock waves through the sauce’s legions of fans, prompting many to pass around Sriracha recipes and rush to supermarkets to buy up the remaining stock.

Huy Fong Foods moved to the Irwindale plant so it could triple its capacity in response to soaring demand, Tran said. In 2012, sales of its hot sauce generated $60 million in revenue.

A transit village with apartments, retailers, restaurants and a hotel is rising in Milpitas next to The Great Mall, close to light rail and the under-construction BART station. It’s one of several Silicon Valley projects sprouting up near transit.