Skip to content

Commit 4304a2b

Browse files
authored
feat: remove the fallback property (#46)
1 parent fd311ba commit 4304a2b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

transformations/__testfixtures__/vue-router-v4/create-router.input.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const router = new VueRouter({
2020
});
2121

2222
new VueRouter({
23-
routes
23+
routes,
24+
fallback: false
2425
});
2526

2627
export default router;

transformations/vue-router-v4.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ export const transformAST: ASTTransformation = context => {
6464
} else if ((p.key as any).name === 'base') {
6565
baseValue = p.value
6666
return false
67+
} else if ((p.key as any).name === 'fallback') {
68+
return false
6769
}
6870

6971
return true

0 commit comments

Comments
 (0)