From 3d3d7ed1b73be6a036ca873544223216d52a2ce2 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 14 Apr 2022 04:50:48 -0700 Subject: [PATCH] doc: specify flag needed for JSON and Wasm modules PR-URL: https://github.com/nodejs/node/pull/42736 Reviewed-By: Antoine du Hamel Reviewed-By: Geoffrey Booth --- doc/api/esm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 7bf5ff14c89e77..3c7bf17c4c62a1 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -180,8 +180,8 @@ added: v12.10.0 [`data:` URLs][] are supported for importing with the following MIME types: * `text/javascript` for ES Modules -* `application/json` for JSON -* `application/wasm` for Wasm +* `application/json` for JSON (requires [`--experimental-json-modules`](cli.md#cli_experimental_json_modules) flag) +* `application/wasm` for Wasm (requires [`--experimental-wasm-modules`](cli.md#cli_experimental_wasm_modules) flag) `data:` URLs only resolve [_Bare specifiers_][Terminology] for builtin modules and [_Absolute specifiers_][Terminology]. Resolving