Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
feat(router): Lazy load views
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed May 24, 2020
1 parent c571934 commit 32920c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Vue from "vue";
import VueRouter, { RouteConfig } from "vue-router";
import MainView from "../views/MainView.vue";
import EditorView from "../views/EditorView.vue";

const MainView = () => import("../views/MainView.vue");
const EditorView = () => import("../views/EditorView.vue");

Vue.use(VueRouter);

Expand Down

0 comments on commit 32920c7

Please sign in to comment.