title: Extend leaflet with plugin on specific leaflet version
body: <p>I'm using two different versions of Leaflet in the same project.</p>
  <p>For this i installed the latest version of leaflet using an alias (&quot;leaflet-latest&quot;).
  After importing the library, i use the noConflict function to use both versions.</p>
  <p>&quot;L&quot; keyword is used for an old version of Leaflet and &quot;Leaflet&quot; keyword is used for the latest version.</p>
  <pre><code>import L from &quot;leaflet-latest&quot;;
  import &quot;leaflet-hotline&quot;;
  
  var Leaflet = L.noConflict();
  
  // L.hotline is defined
  // Leaflet.hotline undefined (is not a function)
  </code></pre>
  <p>Everything is working well except when i want to use a plugin with the latest version.
  Here, i wanted to use the &quot;leaflet-hotline&quot; plugin but when i import it, it extends the global variable L and not &quot;Leaflet&quot;.</p>
  <p>Any suggestions on how to extend Leaflet and not L?</p>
  <p>I tried to solve the problem using this code but it's not a good approach.</p>
  <pre><code>import L from &quot;leaflet-latest&quot;;
  import &quot;leaflet-latest/dist/leaflet.css&quot;;
  import L_Hotline from &quot;leaflet-hotline&quot;;
  
  var Leaflet = L.noConflict();
  
  Leaflet.hotline = L_Hotline.hotline;
  </code></pre>
  <p>In this case, the Leaflet hotline doesn't extends from the good library.</p>