]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: playground
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 31 Jul 2025 16:03:17 +0000 (18:03 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 31 Jul 2025 16:03:17 +0000 (18:03 +0200)
packages/experiments-playground/src/router/index.ts
packages/experiments-playground/tsconfig.app.json

index 0ecadb8552385a5d0e207210c5408b11725621bf..b32576a92aebef5f3a190fb157cb92a495c11882 100644 (file)
@@ -144,3 +144,18 @@ export const router = experimental_createRouter({
     r_profiles_list,
   ]),
 })
+
+router.beforeEach(to => {
+  console.log(`➡️ ${to.fullPath}`)
+})
+router.afterEach((to, _from, failure) => {
+  if (failure) {
+    console.log('╳ ', failure)
+  } else {
+    console.log(`✔️ ${to.fullPath}`)
+  }
+})
+
+router.onError(error => {
+  console.error('❌', error)
+})
index 08a44fd946c7ccec476e42c1a8fb62d48fe95d7e..ed6f5f3e2e88c571a25ec6373c02e7972ec6237d 100644 (file)
@@ -4,6 +4,7 @@
   "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
   "exclude": ["src/**/__tests__/*"],
   "compilerOptions": {
+    "target": "esnext",
     "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
 
     "paths": {