Skip to content

Commit c728da6

Browse files
Trotttargos
authored andcommitted
doc: fix ESM JSON/data URL import example
PR-URL: #42728 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
1 parent 411c5ab commit c728da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/esm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ URLs being used is:
196196

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

202202
#### `node:` Imports

0 commit comments

Comments
 (0)