From 2bef31e0a4dc3b25268683c859ec6cbdf4ba20dc Mon Sep 17 00:00:00 2001 From: Dirk Holtwick Date: Fri, 25 Aug 2023 09:40:04 +0200 Subject: [PATCH 1/2] Improve browser logging for common scenarios --- demos/vite/package.json | 10 ++--- demos/vite/src/App.vue | 2 +- demos/vite/src/components/HelloWorld.vue | 54 ++---------------------- demos/vite/src/main.ts | 25 ++++++++++- package.json | 18 ++++---- src/browser/log-browser-factory.ts | 5 +++ src/browser/log-context-browser.ts | 3 +- 7 files changed, 49 insertions(+), 68 deletions(-) diff --git a/demos/vite/package.json b/demos/vite/package.json index 5e0aae25..3b109c82 100644 --- a/demos/vite/package.json +++ b/demos/vite/package.json @@ -8,14 +8,14 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.45" + "vue": "^3.3.4" }, "devDependencies": { - "@vitejs/plugin-vue": "^3.2.0", - "@vue/compiler-sfc": "^3.2.45", + "@vitejs/plugin-vue": "^4.3.3", + "@vue/compiler-sfc": "^3.3.4", "@vuedx/typecheck": "^0.7.6", "@vuedx/typescript-plugin-vue": "^0.7.6", - "typescript": "^4.9.3", - "vite": "^3.2.4" + "typescript": "^5.2.2", + "vite": "^4.4.9" } } diff --git a/demos/vite/src/App.vue b/demos/vite/src/App.vue index 58beb69d..2af0ca69 100644 --- a/demos/vite/src/App.vue +++ b/demos/vite/src/App.vue @@ -11,7 +11,7 @@ export default defineComponent({ diff --git a/demos/vite/src/components/HelloWorld.vue b/demos/vite/src/components/HelloWorld.vue index 1f98622f..7bc140f6 100644 --- a/demos/vite/src/components/HelloWorld.vue +++ b/demos/vite/src/components/HelloWorld.vue @@ -25,57 +25,9 @@ export default defineComponent({