Last active
December 27, 2017 05:33
-
-
Save y13i/e9b4205f256fcd7152131e0fea6c41b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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