I was wondering if it were possible to create a note on the CSP documentation page that explicitly says that without 'unsafe-eval' being allowed locally, you will not be able to use HMR/fast refresh during development. This was a painpoint for us for the past few weeks, and something i did not uncover until I started reading the WS messaging produced by webpack-hmr to find the root of the issue.
process.env.NODE_ENV === "development" ? "'unsafe-eval'" : "", is the gist of it.