Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does SvelteJS convert third-party libraries code to plain Javascript?

If SvelteJS compiles everything in your code to plain JavaScript does this mean that third-party libraries' code will also be converted to plain JavaScript and remove the ever so problem of npm modules vulnerabilities for JavaScript frameworks, or I'm getting this all wrong

like image 379
Omair Nabiel Avatar asked May 10 '26 22:05

Omair Nabiel


2 Answers

Svelte compiles your components. That's all.

like image 50
Rich Harris Avatar answered May 13 '26 11:05

Rich Harris


Transpiling code will usually transpile (and preserve) the security vulnerabilities too.

like image 28
Quentin Avatar answered May 13 '26 12:05

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!