Does Svelte Radar support *.js
?
#18
-
I'm not sure if my Svelte Radar configuration is incorrect but I have a Svelte 5 project using JS. I can see the routes and Svelte pages but not: Server-side logic ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The current TypeScript-only support wasn't an oversight - it was an initial implementation choice to ensure robust type safety and consistent route detection during the early development phase. Currently Svelte Radar only supports TypeScript files (.ts) for server-side logic, API endpoints, and client-side code. +page.server.js |
Beta Was this translation helpful? Give feedback.
The current TypeScript-only support wasn't an oversight - it was an initial implementation choice to ensure robust type safety and consistent route detection during the early development phase.
Currently Svelte Radar only supports TypeScript files (.ts) for server-side logic, API endpoints, and client-side code.
This limitation is a known issue and I am actively working on adding full JavaScript support. The next release will include detection for:
+page.server.js
+server.js
+layout.js
+page.js