8000 doc: fix ESM JSON/data URL import example · darth-coder-js/node@a058cef · GitHub
[go: up one dir, main page]

Skip to content

Commit a058cef

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

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
@@ -200,7 +200,7 @@ URLs being used is:
200200

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

206206
#### `node:` Imports

0 commit comments

Comments
 (0)
0