Skip to content

Commit 096e433

Browse files
hyunbinseoteemingc
andauthored
docs: remove $lib path customization (#14812)
* 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>
1 parent e67613c commit 096e433

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: $lib
33
---
44

5-
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).
5+
SvelteKit automatically makes files under `src/lib` available using the `$lib` import alias.
66

77
```svelte
88
<!--- file: src/lib/Component.svelte --->

packages/kit/src/exports/public.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ export interface KitConfig {
356356
* };
357357
* ```
358358
*
359-
* > [!NOTE] The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
360-
*
361359
* > [!NOTE] You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
362360
* @default {}
363361
*/

packages/kit/types/index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ declare module '@sveltejs/kit' {
332332
* };
333333
* ```
334334
*
335-
* > [!NOTE] The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
336-
*
337335
* > [!NOTE] You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
338336
* @default {}
339337
*/

0 commit comments

Comments
 (0)