docs: remove `$lib` path customization (#14812)
authorHyunbin Seo <47051820+hyunbinseo@users.noreply.github.com>
Mon, 5 Jan 2026 10:21:55 +0000 (19:21 +0900)
committerGitHub <noreply@github.com>
Mon, 5 Jan 2026 10:21:55 +0000 (18:21 +0800)
* docs: remove `$lib` path customization

Updated documentation for $lib import alias in SvelteKit.

* Update documentation/docs/98-reference/26-$lib.md

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
* chore: remove deprecated comment

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
documentation/docs/98-reference/26-$lib.md
packages/kit/src/exports/public.d.ts
packages/kit/types/index.d.ts

index d9262a29542cc8c7d1afcf1ccdec64bb557af3e6..be9d72b8ec421fa740535312a263631f4de888c7 100644 (file)
@@ -2,7 +2,7 @@
 title: $lib
 ---
 
-SvelteKit automatically makes files under `src/lib` available using the `$lib` import alias. You can change which directory this alias points to in your [config file](configuration#files).
+SvelteKit automatically makes files under `src/lib` available using the `$lib` import alias.
 
 ```svelte
 <!--- file: src/lib/Component.svelte --->
index ce45549aa6b3cf92ff6d9ad1fb433d286092ff69..45f0ad4af3c237f4c2f91ebb6f701aceb97afebe 100644 (file)
@@ -356,8 +356,6 @@ export interface KitConfig {
         * };
         * ```
         *
-        * > [!NOTE] The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
-        *
         * > [!NOTE] You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
         * @default {}
         */
index 8ca87b95f7f53374bfbc1d6f0f195965f39b67b0..7c74c8990c934148e7c710e3467457bb13553c2f 100644 (file)
@@ -332,8 +332,6 @@ declare module '@sveltejs/kit' {
                 * };
                 * ```
                 *
-                * > [!NOTE] The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
-                *
                 * > [!NOTE] You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
                 * @default {}
                 */