Skip to content

Commit

Permalink
Update import_maps.md with another example for using absolute project…
Browse files Browse the repository at this point in the history
… root imports

Since the Deno LSP provides incorrect recommendations for absolute project root imports when using the official example, I suggest adding another example to resolve this issue.

Reference issues:
- denoland/deno#19908
- denoland/deno#17193
  • Loading branch information
cosmoswafer authored Jun 16, 2024
1 parent bc3fbae commit 2da26b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime/manual/basics/import_maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ something like this:
}
```

Additional example if you use project root for absolute imports but want to get rid of the incorrect recommendation from LSP.
You can move the following into scope:

```json
"scopes": {
"./": {
"/": "./",
"./": "./"
}
}
```

## Import Maps are for Applications

It is important to note that import map configuration files are
Expand Down

0 comments on commit 2da26b8

Please sign in to comment.