]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: add missing export line in router.js code block (#2547)
authorCodingNiclas <73436519+CodingNiclas@users.noreply.github.com>
Tue, 9 Sep 2025 08:50:18 +0000 (10:50 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Sep 2025 08:50:18 +0000 (10:50 +0200)
packages/docs/guide/index.md

index 383780d5e53ced7415d2fe15a0606558007fe8a5..23ceab347553b24ae7768cf9bb61a10221e2ae41 100644 (file)
@@ -63,7 +63,7 @@ const routes = [
   { path: '/about', component: AboutView },
 ]
 
-const router = createRouter({
+export const router = createRouter({
   history: createMemoryHistory(),
   routes,
 })