title: DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated
body: <p>I am working on a react project and when I updated webpack 4.44.2 to 5.4.0 I am getting the following message:</p>
  <pre><code>[DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
  BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
      Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
      Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
  (Use `node --trace-deprecation ...` to show where the warning was created)
  </code></pre>
  <p>I searched a lot but did not get an exact answer. So how can I solve ?</p>