Skip to content

Commit a058cef

Browse files
authored
doc: fix ESM JSON/data URL import example
PR-URL: #42728 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Beth Griggs <[email protected]>
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

+1-1
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)