Resolve "Enable scope hoisting with webpack"

Merged username-removed-636429 requested to merge 36152-enable-scope-hoisting-with-webpack into master

Add scope hoisting to our webpack config. This feature has the potential to vastly improve the parsing and executing of our javascript bundles by removing a ton of unnecessary nested closures.

I will try to run some tests to quantify whatever performance improvement this provides.

Closes #36152 (closed)