From f18f31f6d3aed8218591575a5d376a81926cdd58 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 9 Apr 2020 15:32:41 +0200 Subject: [PATCH] chore: add vm to playground for testing purposes --- playground/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playground/main.ts b/playground/main.ts index bfdfa541..defbc8f7 100644 --- a/playground/main.ts +++ b/playground/main.ts @@ -1,6 +1,6 @@ // necessary for webpack /// -import { createApp } from 'vue' +import { createApp, App as Application } from 'vue' import { router, routerHistory } from './router' import { globalState } from './store' import App from './App.vue' @@ -10,6 +10,7 @@ declare global { // h: HTML5History h: typeof routerHistory r: typeof router + vm: ReturnType } } @@ -21,4 +22,4 @@ const app = createApp(App) app.provide('state', globalState) app.use(router) -app.mount('#app') +window.vm = app.mount('#app') -- 2.47.2