This reverts commit 8310c91823.
8310c91823
This change also makes webpack properly reject promise on build errors Closes #6546