Per ResourceLoader Migration guide, there are plans to set $wgLegacyJavaScriptGlobals to false and remove the global JavaScript variables (such as wg*).
I'm opening this bug (similar to T35836) mostly for tracking the progress on this regard.
For the overall schedule, see T72470: Remove legacy javascript globals.