mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00: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:
@@ -200,7 +200,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