sapper
sapper copied to clipboard
make sapper.base optional
Is your feature request related to a problem? Please describe. sapper.base was introduced to solve https://github.com/sveltejs/sapper/issues/180 over a year ago. it is not optional for sapper to compile (i'm not sure why, but im sure there are good reasons). however, this causes screwy things to happen for relative/anchor links.
in discord, rich has voiced willingness:
unindented03/15/2019 is there a way to avoid including %sapper.base% and have prefetching still work? that
tag is making me really unhappy it means I can't have relative links anywhere it also fucks up my anchor links
rich_harris03/15/2019 not in the current version. would love to get rid of it, it needs some care though
Describe the solution you'd like
make <base> be optional, if not supplied by the user.
Describe alternatives you've considered none
How important is this feature to you? moderate. i'm autogenerating some links and having to account for base is making it pretty tricky.