title: Vue2-Leaflet with No-SSR causes Window is not defined error
body: <p>I've been trying a bunch of stuff now. I've tried nuxt-leaflet dependency, I've tried writing my own plugin and including it. However, everything keeps ending in the "window is not defined" error.</p>
  
  <p>The map should only be loaded on the client.</p>
  
  <p>My vue component:</p>
  
  <pre><code> &lt;template&gt;
          &lt;no-ssr&gt;
              &lt;l-map
                      id="map"
                      :zoom="zoom"
                      :min-zoom="3"
                      :center="center"
              &gt;
  
              &lt;/l-map&gt;
          &lt;/no-ssr&gt;
   &lt;/template&gt;
  
  &lt;script lang="ts"&gt;
      import Vue from 'vue';
      import {latLng, marker} from 'leaflet';
      import {ExploreItemType} from '~/components/explore/ExploreItem';
      import {Component} from "nuxt-property-decorator";
  
      @Component()
      export default class ExplorerMap extends Vue {
  
          url = 'https://api.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoia2dydWVuZWJlcmciLCJhIjoiY2puajJ3c3dmMGV1YzNxbDdwZ3Y5MXc0bCJ9.kuHo67NUkzqya1NtSjTYtw';
          attribution = 'Map data &amp;copy; &lt;a href="https://www.openstreetmap.org/"&gt;OpenStreetMap&lt;/a&gt; contributors, &lt;a href="https://creativecommons.org/licenses/by-sa/2.0/"&gt;CC-BY-SA&lt;/a&gt;, Imagery © &lt;a href="https://www.mapbox.com/"&gt;Mapbox&lt;/a&gt;';
          zoom = 3;
          center = latLng(51.505, -0.09);
          drawCluster = true;
  
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>So I wrote my own plugin in plugins/vue-leaflet.ts</p>
  
  <pre><code>import Vue from 'vue'
  import Vue2Leaflet from 'vue2-leaflet'
  import Vue2LeafletMarkerCluster from 'vue2-leaflet-markercluster';
  
  Vue.component('l-circle', Vue2Leaflet.LCircle);
  Vue.component('l-geo-json', Vue2Leaflet.LGeoJson);
  Vue.component('l-icon-default', Vue2Leaflet.LIconDefault);
  Vue.component('l-layer-group', Vue2Leaflet.LLayerGroup);
  Vue.component('l-map', Vue2Leaflet.LMap);
  Vue.component('l-marker', Vue2Leaflet.LMarker);
  Vue.component('l-popup', Vue2Leaflet.LPopup);
  Vue.component('l-tile-layer', Vue2Leaflet.LTileLayer);
  Vue.component('l-tooltip', Vue2Leaflet.LTooltip);
  </code></pre>
  
  <p>And included it in the nuxt.config.js</p>
  
  <p><code>{src: "~/plugins/vue-leaflet.ts", ssr: false}</code></p>
  
  <p>No matter what I've tried, I always end up getting the window is not defined error. I'm out of ideas.</p>