Skip to content

Commit 7c700eb

Browse files
Trottjuanarbol
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 444754b commit 7c700eb

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
@@ -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)