title: How to update webpack plugins with breaking changes from v4 to v5?
body: <p>From webpack's official migration tutorial: <a href="https://webpack.js.org/migrate/5/" rel="nofollow noreferrer">https://webpack.js.org/migrate/5/</a></p>
  <blockquote>
  <p><strong>Update outdated options</strong></p>
  <p>Update the following options to their new version (if used):</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/8mfv2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8mfv2.png" alt="enter image description here" /></a></p>
  <p>Does it mean that those plugins will no longer exist as actual plugins?</p>
  <p>What I mean:</p>
  <p><strong>webpack.config.js</strong></p>
  <pre><code>const webpack = require(&quot;webpack&quot;);
  
  const config = {
    plugins: [
      new webpack.NamedModulesPlugin(),
      // new webpack.HashedModuleIdsPlugin(),
      new webpack.NamedChunksPlugin(),
    ]
  };
  </code></pre>
  <p>Should be converted to the following config?</p>
  <pre><code>const config = {
    optimization: {
      moduleIds: &quot;named&quot; | &quot;deterministic&quot;,   // ONE OF THESE VALUES
      chunkIds: &quot;named&quot;
    }
  };
  </code></pre>