mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
doc: fix ESM JSON/data URL import example
PR-URL: https://github.com/nodejs/node/pull/42728 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
This commit is contained in:
1 parent
806711346d
commit
b6c23b0312
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user