title: TypeError: compiler.plugin is not a function at ReactLoadablePlugin.apply
body: <p>I want to implement SSR in ReactJs using React Loadable by Webpack. Below are a few lines from the package.json file:</p>
  <pre><code>const { ReactLoadablePlugin } = require('react-loadable/webpack');
  plugins:[
      new ReactLoadablePlugin({
          filename: path.resolve(__dirname, 'dist', 'react-loadable.json')
      }),
  ]
  </code></pre>
  <p>But I am getting below error:</p>
  <pre><code>&gt; [webpack-cli] TypeError: compiler.plugin is not a function
  at ReactLoadablePlugin.apply
  </code></pre>
  <p>How can I resolve it?</p>