Skip to content

Instantly share code, notes, and snippets.

@y13i
Last active December 27, 2017 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y13i/e9b4205f256fcd7152131e0fea6c41b9 to your computer and use it in GitHub Desktop.
Save y13i/e9b4205f256fcd7152131e0fea6c41b9 to your computer and use it in GitHub Desktop.
// workaround: when webpack resolve.alias not working
import * as VueAll from "vue";
import VueDefault from "vue";
export type Vue = VueDefault;
export const Vue = <typeof VueDefault><any>VueAll;
import * as VueRouterAll from "vue-router";
import VueRouterDefault from "vue-router";
export type Router = VueRouterDefault;
export const Router = <typeof VueRouterDefault><any>VueRouterAll;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment