Upon successfully building with angular4+webpack3, I encountered an error on the second refresh in the browser. The error message was:
uncaught exception: reflect-metadata shim is required when using class decorators
To resolve this issue, I had to add the following script to my index.html file:
<script src="Reflect.js"></script>
Although this fixed the problem, I wondered why it was necessary to include this script in the index.html file. Shouldn't it be included in the webpack main.bundle.js instead?