mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
docs: Use JSONC code block for commenting (#9511)
This commit is contained in:
parent
e2a91190c3
commit
097efa100a
2 changed files with 8 additions and 8 deletions
|
@ -42,9 +42,9 @@ $ deno run --import-map=import_map.json --unstable color.ts
|
|||
|
||||
To use starting directory for absolute imports:
|
||||
|
||||
```json
|
||||
// import_map.json
|
||||
**import_map.json**
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"imports": {
|
||||
"/": "./"
|
||||
|
@ -52,17 +52,17 @@ To use starting directory for absolute imports:
|
|||
}
|
||||
```
|
||||
|
||||
```ts
|
||||
// main.ts
|
||||
**main.ts**
|
||||
|
||||
```ts
|
||||
import { MyUtil } from "/util.ts";
|
||||
```
|
||||
|
||||
You may map a different directory: (eg. src)
|
||||
|
||||
```json
|
||||
// import_map.json
|
||||
**import_map.json**
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"imports": {
|
||||
"/": "./src/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue