title: How to send module to an imported ES6 Classe outside of a controller
body: <p>Hello i'm using webpack on symfony.
  I've imported some ES6 classes using module.exports like this :</p>
  
  <pre><code>module.exports = class Exemple{
   constructor(arg1)
  }
  </code></pre>
  
  <p>I need to use a module that i've defined before to call the require including my class in this class without calling the module in the controller .
  that would be something like this : </p>
  
  <p>Template.js</p>
  
  <hr>
  
  <pre><code>Module.exports = class Template{
  Routing.generate(****)
  }
  </code></pre>
  
  <p>index.js</p>
  
  <hr>
  
  <pre><code>import Routing from '../../../../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/js/router.min.js';
  Routing.setRoutingData(routes);
  require('../templateManager.js'),(Routing)
  </code></pre>
  
  <p>;</p>
  
  <p>How can i pass Routing to my class to use it in without using Controller</p>