code: function(o) {
        Vue.use(VueRouter);
        var router = new VueRouter({ mode: 'history', routes: o.routes });
        if (o.beforeFirst) {
          router.beforeEach((to, from, next) => {
            if (!router.app_initialised) {
              router.app_initialised = true;
              o.beforeFirst(to, from, next);
            } else { next(); }
          });
        }
        if (o.beforeEach) router.beforeEach(o.beforeEach);
        if (o.beforeResolve) router.beforeResolve(o.beforeResolve);
        if (o.afterEach) router.afterEach(o.afterEach);
        return exports(o.ns, router);
      }
docs: /* VueRouter