title: WebpackError: Cannot set property 'emulateTransitionEnd' of undefined
body: <p>I'm trying to use Bootstrap on GatsbyJs, but It keeps disapointing me.</p>
  
  <p>Is there a real way to import bootstrap without this error? <code>WebpackError: Cannot set property 'emulateTransitionEnd' of undefined</code>.</p>
  
  <p>The full error is the following: </p>
  
  <pre><code>  WebpackError: Cannot set property 'emulateTransitionEnd' of undefined
  
    - bootstrap.min.js:6
      ~/bootstrap/dist/js/bootstrap.min.js:6:2684
  
    - bootstrap.min.js:6
      ~/bootstrap/dist/js/bootstrap.min.js:6:2876
  
    - bootstrap.min.js:6 module.exports.data.site.siteMetadata.title
      ~/bootstrap/dist/js/bootstrap.min.js:6:16
  
    - bootstrap.min.js:6 Object.module.exports.data.site.siteMetadata.title
      ~/bootstrap/dist/js/bootstrap.min.js:6:236
  
    - index.js:16 Object.exports.__esModule
      src/layouts/index.js:16:1
  
    - index.js:3 Object.exports.__esModule
      .cache/layouts/index.js:3:3
  
    - sync-requires.js:6 Object.exports.__esModule
      .cache/sync-requires.js:6:35
  </code></pre>
  
  <p>Thanks</p>