XWiki can now be configured to parse and minify wiki-based JavaScript skin extensions (JSX) using strict mode. This is disabled by default but you can enable it from xwiki.properties using:
skinx.jsStrictModeEnabled = true
Check the skin extension documentation for more information.