Etymology
Today it means: While expiring or dying. Full definition →
From expiring + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.