Using the Facebook JS SDK in a Module (webpack) : <p>I'm using webpack to keep my JavaScript code organized in modules but I'm running into a problem trying to load the Facebook JS SDK. I've tried using the <code>externals</code> option of webpack but since the library is loaded asynchronously I don't think it will provide the answer I am looking for.</p>

<p>There was an issue for webpack that addressed this problem. However, I don't think it works any longer. <a href="https://github.com/webpack/webpack/issues/367">https://github.com/webpack/webpack/issues/367</a></p>

<p>What would be a good approach to this problem? Should I just load the SDK synchronously? </p>
