Chill guys. Rafale is far from being a real threat. Yet. A lot can happen between now and then. And even when it happens, it can be catered. No weapon is perfect and Rafale is no exception. Here are few options to cater Rafale.
1. Jam resistant SAMs and latest iterations of F-16 can make for immediate response (F-16V and Block-61 are no slouch). Strange it may seem to some but JF-17 block-3 won't be a sitting duck either if PAF gets it right. With AESA, Advance EW suite, composites+RAM coating, IRST, next generation of Chinese BVRs and operating in robust networked space; all this will make JF-17 a potent threat especially when flying on their side that too in swarms.
2. Mid term F-15SA equivalent is more than a match to Rafale. Don't worry. When Rafale are around the corner US Congress will have second thoughts from divine interventions
. If that doesn't happen then Su-35 or J-1x is there too. EFTs are a possibility too although aircraft has its own problems.
3. J-31/ TFX and F-35 are long term solutions and are likely to be superior to Rafale. J-31 is most likely for PAF.