Consistent handling of base
between preloadCode
and preloadData
#10398
Labels
Milestone
base
between preloadCode
and preloadData
#10398
Describe the problem
When using base in a project,
preloadCode
works only if I give it a path excludingbase
.preloadData
works only if I give it a path includingbase
. Additionally,preloadData
will error if no paths match butpreloadCode
does not.With the combination of these issues and no immediate visible impact on the application, it is very easy to have
preloadCode
calls that are broken and do nothing. Tracking them down inside an application of any size is difficult.Repo to test: https://github.com/WaltzingPenguin/sveltekit-preload
Describe the proposed solution
preloadCode
should requirebase
as part of the path to matchpreloadData
(andgoto
).preloadCode
should also throw an error if it did not match any routes.Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: