diff client/src/components/Main.vue @ 1669:16fb9667ddf8

refac: use dynamic imports for components
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 24 Dec 2018 13:12:11 +0100
parents 0ded4c56978e
children 9bf6b767a56a
line wrap: on
line diff
--- a/client/src/components/Main.vue	Mon Dec 24 12:57:36 2018 +0100
+++ b/client/src/components/Main.vue	Mon Dec 24 13:12:11 2018 +0100
@@ -20,14 +20,11 @@
  * Thomas Junk <thomas.junk@intevation.de>
  */
 
-import Maplayer from "./Maplayer";
-import FairwayProfile from "./fairway/Fairwayprofile";
-
 export default {
   name: "mainview",
   components: {
-    Maplayer,
-    FairwayProfile
+    Maplayer: () => import("./Maplayer"),
+    FairwayProfile: () => import("./fairway/Fairwayprofile")
   }
 };
 </script>