title: React loadable import connect component
body: <p>I'm trying to make react-loadable work with ServerSide Rendering. I've got a quite big app using multiple HOCs which <code>connect</code> components, add routers etc. </p>
  
  <p>Components seem to go okay, instead the smart components connected via <code>react-redux</code> or other HOCs. 
  <code>react-loadable</code> doesn't seem to so this as seperate modules and in the <code>.json</code> that is created <code>undefined</code> is thrown. </p>
  
  <p>Example of <strong>dumb</strong> components loaded correctly:</p>
  
  <pre><code>"common/HeaderTitle": [
      {
        "id": 667,
        "name": "./src/app/components/common/HeaderTitle.jsx",
        "file": "0.650d44243e1a15fa7627.js"
      },
      {
        "id": 667,
        "name": "./src/app/components/common/HeaderTitle.jsx",
        "file": "0.650d44243e1a15fa7627.js.map"
      },
      ...
  ],
  </code></pre>
  
  <p>Example of <strong>smart</strong> components which don't load:</p>
  
  <pre><code>"undefined": [
      {
        "id": 626,
        "name": "./src/app/components/modules/Home/index.jsx",
        "file": "0.650d44243e1a15fa7627.js"
      },
      ...
  ],
  </code></pre>
  
  <p>The html render of my server looks like the following. Everything in here is copied from the official docs:</p>
  
  <pre><code>app.use((req, res) =&gt; {
      const modules = [];
  
      const html = SSR ? renderToString(
          &lt;Provider store={store}&gt;
              &lt;StaticRouter location={req.url} context={{}}&gt;
                  &lt;Loadable.Capture report={moduleName =&gt; modules.push(moduleName)}&gt;
                      &lt;App /&gt;
                  &lt;/Loadable.Capture&gt;
              &lt;/StaticRouter&gt;
          &lt;/Provider&gt;,
      ) : ' ';
  
      console.log('modules', modules);
      const bundles = getBundles(stats, modules);
      console.log('bundles', bundles);
  
      res.status(200).send(renderFullPage({ html, bundles }));
  });
  </code></pre>
  
  <p>Which logs as expected:</p>
  
  <pre><code>modules [ './modules/Home' ]
  bundles [ undefined ]
  TypeError: Cannot read property 'file' of undefined
  </code></pre>
  
  <p>This is really driving me crazy. The package seems really good and I would like to use it. But I can't find anything about issues like this and there ain't an issue section on Github. </p>
  
  <p>Open to any suggestion or help. Thanks in advance.</p>