title: Import nouislider with webpack on rails
body: <p>I'm trying to implement a nouislider on Rails. I installed it with Yarn and my package.json confirms this: "nouislider": "^11.1.0".</p>
  
  <p>Unfortunatly I got this error on the chrome console : </p>
  
  <p><em>Uncaught ReferenceError: noUiSlider is not defined at Object. (slider2.js:12)</em></p>
  
  <p>here is my app/javascript/packs/application.js :</p>
  
  <pre><code>import "nouislider";
  import '../components/slider2';
  </code></pre>
  
  <p>(where slider2.js is my noUiSlider script)</p>
  
  <p>What is wrong with this importation? Why does slider2.js don't understand what is noUislider?</p>