Svelte · Middle · Question 44 of 75

How do you make a module server-only in SvelteKit?

Explanation

This prevents secrets and database clients from ending up in the browser bundle, even through indirect imports.

Further reading

Problem with a question

Svelte · Middle · question 44

Test yourself

Take the Svelte · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz