Reputation: 2750
In the Svelte REPL it is possible to add a new .svelte file but not a new .js file, but samples exist do have .js files:
https://svelte.dev/examples#derived-stores
Is it possible for end users to do the same?
Upvotes: 5
Views: 515
Reputation: 2149
When you add a new file (plus-sign), you need to just type .js
at the end of file
Upvotes: 7