Sveltekit deploys /src folder
Super weird issue and not sure what is happening because I did not find any other posts.
Basically when deploying my sveltekit app via github to cloudflare pages, the /src folder is apparently also deployed.
(screenshot from chrome)
How do I stop that from happening?



7 Replies
That looks like source maps not actual content existing
But when I click on it I can see the content of the actual file
Yeah that's how sourcemaps work, they give the source from obfuscated content
What I noticed is that it says in the bottom corner "from xyz.js"

Ahh ok, so basically de-obfuscates it
Or can I stop that from happening somehow?/stop providing the mapping files
Sveltekit should provide an option to disable it
I haven't used it though so don't know it personally
Thanks!! Didn't know of the concept. Definitely helped my search