Myvideo

Guest

Login

Svelte Kit Import with custom Alias from '$alias/...

Uploaded By: Myvideo
1 view
0
0 votes
0

Short answer: Add this to your file: const path = require(“path“) = { kit: { vite: { resolve: { alias: { $components: (“src/components/“) } } }, { “compilerOptions“: { “baseUrl“: “.“, “paths“: { “$lib/*“: [ “src/lib/*“ ], “$components/*“: [ “src/components/*“ ] Svelte Kit is BETA I used: svelte/kit: svelte: ^ vite:

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later