Closed btakita closed 5 years ago
Not quite sure I understand the value of this proposal?
I don't think this is something we want to facilitate. You should just be compiling in SSR mode (at bundle time) and using that at runtime. If you need to have some sort of runtime compilation of components, you'll need to bring your own (runtime) bundler and set up the sandbox in the particular way that you need it, etc. We don't want to be in the business of blessing what is essentially a server-side eval
or worrying about exposing the right things or worrying about keeping people safe. Closing.
One advantage that react has over svelte is the ability to compile in a function. It would be nice if svelte could do the same.
Instead of manipulating a string in:
https://github.com/sveltejs/svelte.technology/blob/master/src/routes/blog/rss.xml.js
something like the following could be used: