Skip to content

Commit c8b6970

Browse files
committed
Update docs
1 parent 22b5464 commit c8b6970

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

packages/docs/src/content/docs/features/compilers.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -61,30 +61,6 @@ to Knip. This means you don't need to add something like `**/*.{ts,vue}` to the
6161

6262
:::
6363

64-
### Svelte
65-
66-
In a project with Svelte, the compiler is automatically enabled, but you may
67-
have unresolved imports starting with `$app/`:
68-
69-
```shell
70-
Unresolved imports (5)
71-
$app/stores src/routes/Header.svelte:1:9
72-
$app/environment src/routes/about/+page.ts:1:9
73-
```
74-
75-
In this case, you can manually add the `$app` path alias:
76-
77-
```json title="knip.json"
78-
{
79-
"paths": {
80-
"$app/*": ["node_modules/@sveltejs/kit/src/runtime/app/*"]
81-
}
82-
}
83-
```
84-
85-
As a last resort, see [ignoredUnresolved][1] to ignore virtual import specifiers
86-
from the report.
87-
8864
### CSS
8965

9066
Here's an example, minimal compiler for CSS files:
@@ -145,5 +121,3 @@ const config = {
145121

146122
export default config;
147123
```
148-
149-
[1]: ../reference/configuration.md#ignoreunresolved

packages/docs/src/content/docs/guides/handling-issues.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ similar to how standard ES Modules specifies file extensions are necessary.
405405

406406
### Unrecognized path aliases
407407

408-
Knip considers TSconfig path aliases and [paths configured in knip.json][35],
408+
Knip considers TS config path aliases and [paths configured in knip.json][35],
409409
but not those in e.g. Webpack or Vite configurations.
410410

411411
**Solution**: configure [paths][35] or try relative imports. Otherwise, use

0 commit comments

Comments
 (0)