Skip to content

Commit

Permalink
doc: fix ESM JSON/data URL import example
Browse files Browse the repository at this point in the history
PR-URL: #42728
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
  • Loading branch information
Trott authored and targos committed Jul 31, 2022
1 parent 8067113 commit b6c23b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ URLs being used is:

```js
import 'data:text/javascript,console.log("hello!");';
import _ from 'data:application/json,"world!"';
import _ from 'data:application/json,"world!"' assert { type: 'json' };
```

#### `node:` Imports
Expand Down

0 comments on commit b6c23b0

Please sign in to comment.