]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: reuse warn
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 14 Aug 2025 13:48:37 +0000 (15:48 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 14 Aug 2025 13:48:37 +0000 (15:48 +0200)
packages/router/src/experimental/route-resolver/resolver-dynamic.ts

index 2b8f25c827bc8d4304fc143f96a4018342edb6cf..3f0020d3680149ae0d3c7dbd4b5ea27651b1d045 100644 (file)
@@ -110,7 +110,7 @@ export function createCompiledMatcher<
     if (typeof to === 'object' && (to.name || to.path == null)) {
       // relative location or by name
       if (__DEV__ && to.name == null && currentLocation == null) {
-        console.warn(
+        warn(
           `Cannot resolve an unnamed relative location without a current location. This will throw in production.`,
           to
         )