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
Walshy
Walshy2y ago
That looks like source maps not actual content existing
MaxMax
MaxMaxOP2y ago
But when I click on it I can see the content of the actual file
Walshy
Walshy2y ago
Yeah that's how sourcemaps work, they give the source from obfuscated content
MaxMax
MaxMaxOP2y ago
What I noticed is that it says in the bottom corner "from xyz.js"
MaxMax
MaxMaxOP2y ago
Ahh ok, so basically de-obfuscates it Or can I stop that from happening somehow?/stop providing the mapping files
Walshy
Walshy2y ago
Sveltekit should provide an option to disable it I haven't used it though so don't know it personally
MaxMax
MaxMaxOP2y ago
Thanks!! Didn't know of the concept. Definitely helped my search
Want results from more Discord servers?
Add your server