In some places in the Pali Canon, there is the term “tejodhātuṁ samāpajjitvā”, which is usually translated as “entered the fire element”. According to my understanding, this meditation is a similar practice that in Tibetan and Indian Buddhism goes by the term tummo (Tibetan: གཏུམ་མོ, Wylie: gtum-mo; Sanskrit: चण्डाली, romanized: caṇḍālī), which is the meditaion of the fierce goddess of heat and passion. Tummo is found in the Mahasiddha Krishnacarya and the Hevajra Tantra texts.
In advanced practice and at the highest level of Vajrayana, a light body or rainbow body (Tibetan: འོད་ལུས། 'od-lus) is also supposed to be developed with this practice, meaning that, according to tradition, the yogi brings their body to shrink over a short or long period of time or dissolves the body into light manifestations as the essence of the elements of their body. Usually, only hair and nails remain as remnants. This event of the body dissolving into a light manifestation is described in the suttas of Udāna 8.9 Paṭhamadabbasutta and
Udāna 8.10 Dutiyadabbasutta
To me, it sounds like the Buddha and his disciples already knew and practiced these methods back then.
there are still other meanings for the term tejodhatu in Mahayana, see