Corey Alix
Corey Alix

Reputation: 2750

How to add a .js file to the Svelte REPL?

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

Answers (1)

grohjy
grohjy

Reputation: 2149

When you add a new file (plus-sign), you need to just type .js at the end of file

Upvotes: 7

Related Questions