Hacker News new | ask | show | jobs
by abledon 2297 days ago
does svelte have a way of hiding the .svelte components from the users on the frontend? e.g. so they cant blatantly rip the source code in your components and reuse them
1 comments

Sure, it's easy: don't serve sourcemaps.

This isn't specific to Svelte though. In fact your code is much more obfuscated with Svelte than with most comparable tools, since you're not serving the code you actually wrote, but rather the output of a compiler (while this is technically true if you're using TypeScript/a minifier/whatever, it's qualitatively different).

This is what makes svelte so incredibly powerful and worthy of consideration.

Not having a run time on the client is huge. But, the developer experience is exactly the same as you get from React and Vue.

You can trust this guy here, he knows what he is talking about.