Svelte · Senior · Question 43 of 75

What happened to the $lib alias in SvelteKit 3?

Explanation

Vite and TypeScript resolve subpath imports natively. Imports now include file extensions, e.g. #lib/foo.js.

Further reading

Problem with a question

Svelte · Senior · question 43

Test yourself

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

Take this quiz