If you are planning to buy your new home first and then sell your current home ultimately its the lender you have to be most concerned with. They are the ones who will be looking at your debt to income ratio and will decide how much you can get towards your new home.
They likely wont care that the HELOC will be paid out at the time you close your current home and will treat it as if that debt will persist