Skip to content

Commit 3d3d7ed

Browse files
Trottjuanarbol
authored andcommittedMay 1, 2022
doc: specify flag needed for JSON and Wasm modules
PR-URL: #42736 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
1 parent de474c8 commit 3d3d7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/api/esm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ added: v12.10.0
180180
[`data:` URLs][] are supported for importing with the following MIME types:
181181

182182
* `text/javascript` for ES Modules
183-
* `application/json` for JSON
184-
* `application/wasm` for Wasm
183+
* `application/json` for JSON (requires [`--experimental-json-modules`](cli.md#cli_experimental_json_modules) flag)
184+
* `application/wasm` for Wasm (requires [`--experimental-wasm-modules`](cli.md#cli_experimental_wasm_modules) flag)
185185

186186
`data:` URLs only resolve [_Bare specifiers_][Terminology] for builtin modules
187187
and [_Absolute specifiers_][Terminology]. Resolving

0 commit comments

Comments
 (0)
Please sign in to comment.