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