buildProduction: Only run the replaceSymbolsInJavaScript transform on loaded JavaScript assets.

(cherry picked from commit 3fc11aaf147164257664fe8a4d44ad6baaffb8db)