Replies: 2 comments
-
What were you trying to do? Why would you import a name from an external module? I'm still looking for usecases to allow arbitrary script to export the route block I do like the idea of allowing a script, I did some experiments to allow a In practice though, I would like to minimize the need for it. So most things should be doable with the usual |
Beta Was this translation helpful? Give feedback.
0 replies
-
Importing external properties is now allowed in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From my limited experience with
unplugin-vue-router
definePage seems bit cumbersome to use, because of its limitations with variables. Worse than that it's limitations aren't clear at first glance to developers, typescript/eslint doesn't know about it either. There is no way to import things to it. The SFC route block partially solves readability issues for static values.So my propolsal is that instead route definition would be defined in separate script tag with keyword
route
.It is similar to setup, so it seems familiar, also you can import things to it, declare variables and so on.
Something like this:
Challenges
scope="definePage",
macroor
context`.<script lang="ts" />
are different from<script lang="ts" route>
.Beta Was this translation helpful? Give feedback.
All reactions