Several early sources indicate that Leah was an active, knowing participant in the substitution. Lavan's own accusation in Bereshit Rabbah 70:19 has Leah answer that she simply did what her father Yitzchak expected when he called out to her — a retort that only makes sense if she knowingly impersonated Rachel that night, and the pasuk itself records Yaakov's shock the next morning that 'it was Leah' (Bereishit 29:23-25), language also preserved in Targum Jonathan on Bereishit 29:23-25.
The Gemara in both Bava Batra 123a:18-20 and Megillah 13b:3-5 relates that Rachel, foreseeing her own shame, transmitted to Leah the very signs Yaakov had arranged with her so that Leah could pass as Rachel — meaning Leah entered the marriage equipped with Rachel's signs and thus aware of the deception she was executing. Rashi (Bereishit 29:18) and Rabbeinu Bahya, Bereshit 29:25 record the same tradition, that Leah understood what was happening and used the transmitted signs to avoid being recognized.
The Ramban (Bereishit 29:31) states this plainly: Leah deceived both her sister and Yaakov, for even granting that she was obligated to honor her father's placing her before Yaakov, she should have signaled by word or gesture that she was Leah, and instead she disguised herself the entire night so that Yaakov would not recognize her — which is why, in the Ramban's reading, Yaakov came to hate her, though Hashem had compassion on her because she acted in order to marry the righteous one.
Against this, Rav Samson Raphael Hirsch holds the opposite: that Yaakov ultimately loved Leah and did not hold her father's deed against her, because Leah herself, no less than Yaakov, was a victim of Lavan's trickery — she was led to believe in local customs Lavan had fabricated, and participated in the deception without full awareness of her own role.
Background sources help explain Leah's motive for going along with the substitution: Midrash Tanchuma, Vayetzei 4:2 and Midrash Tanchuma Buber, Vayetzei 12:2 describe Leah weeping at the prospect of being destined to marry the wicked Esav while her sister Rachel was destined for the righteous Yaakov, giving her a clear personal stake in the outcome regardless of how aware she was of the mechanics of the switch.
Other sources address the surrounding details rather than Leah's own knowledge directly: Bereishit 29:16 introduces the two sisters by name and age, Pirkei DeRabbi Eliezer 36:8 and רמב"ן (Bereishit 29:27) describe Lavan's scheme and the week of feasting he used to effect the deception, הכתב והקבלה (Bereishit 29:30) analyzes the language of Yaakov's second seven years of service, Ramban discusses Leah's later giving of her maidservant to Yaakov, Chizkuni, Bereishit 29:25 focuses on Yaakov's modesty in not speaking to his bride that night, and Or HaChaim on Bereishit 29:25 and אור החיים (Bereishit 29:32) discuss Yaakov's and Leah's inner reactions afterward rather than her foreknowledge of the switch itself.
Shiurei Daas 3 p. 134 raises the question of why Yaakov needed to impose such detailed conditions on Lavan — stipulating Rachel by name and warning against a name-switch — which bears on how calculated Lavan's eventual deception was, though it does not itself resolve what Leah knew.