title: Webpack: Cannot destructure property `curry` of 'undefined' or 'null'
body: <p>After compiling my application using webpack &amp; babel-loader for the browser, the following error appears right off the bat before the main function starts:</p>
  
  <pre><code>Uncaught TypeError: Cannot destructure property `curry` of 'undefined' or 'null'.
      at Object../node_modules/@qzdio/f/lib/combinators/sync.js (index-c1596672f4.js:formatted:268)
      at n (runtime-74c3f0da77.js:formatted:10)
      at Object../node_modules/@qzdio/f/lib/combinators/index.js (index-c1596672f4.js:formatted:251)
      at n (runtime-74c3f0da77.js:formatted:10)
      at Object../node_modules/@qzdio/f/lib/index.js (index-c1596672f4.js:formatted:723)
      at n (runtime-74c3f0da77.js:formatted:10)
      at Object../dist/graph/visualizer/src/index.js (index-c1596672f4.js:formatted:9)
      at n (runtime-74c3f0da77.js:formatted:10)
      at window.webpackJsonp (runtime-74c3f0da77.js:formatted:26)
      at index-c1596672f4.js:formatted:1
  </code></pre>
  
  <p>The faulty code is the ES5 transpilation of the following: </p>
  
  <pre><code>import R from 'ramda';
  const { curry } = R;
  
  // I :: a -&gt; a
  const I = (x) =&gt; x;
  ...
  </code></pre>
  
  <p>Where the said code is from a private functional library that relies on <a href="http://ramdajs.com/" rel="nofollow noreferrer">ramda</a> and <a href="http://bluebirdjs.com/" rel="nofollow noreferrer">bluebird</a>. The library is used and working under Node.js 8.9.1.</p>
  
  <p>The <a href="https://github.com/philipwalton/webpack-esnext-boilerplate/blob/master/tasks/bundles.js" rel="nofollow noreferrer">webpack config</a> used is straight up from philipwalton's webpack-esnext-boilerplate (great to start with :D)</p>
  
  <h3>Versions:</h3>
  
  <ul>
  <li>babel-cli: ^6.26.0,</li>
  <li>babel-loader: ^7.1.2,</li>
  <li>webpack: ^3.8.1,</li>
  <li>Browser: Google Chrome Version 62.0.3202.89 (Official Build) (64-bit),</li>
  <li>Node.js: 8.9.1,</li>
  <li>npm: 5.5.1</li>
  </ul>
  
  <p>What is the source of the error and how can it be resolved?</p>
  
  <p>Cheers ✨</p>