From df218ce066b3b4f981a197a60722bb85ebfd0964 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sat, 28 Sep 2019 15:01:23 -0400 Subject: [PATCH] Revert "esm: remove experimental status from JSON modules" This reverts commit ec8776da6fa77628e12718bb38cee687303d4137. PR-URL: https://github.com/nodejs/node/pull/29754 Reviewed-By: Rich Trott Reviewed-By: Myles Borins --- doc/api/cli.md | 8 ++++++++ doc/api/esm.md | 19 ++++++++++++++++--- doc/node.1 | 3 +++ lib/internal/modules/esm/default_resolve.js | 7 +++++-- src/node_options.cc | 9 +++++++++ src/node_options.h | 1 + test/es-module/test-esm-json-cache.mjs | 2 +- test/es-module/test-esm-json.mjs | 3 +-- 8 files changed, 44 insertions(+), 8 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 0ef08ed7e37fc1..93dbd43c2172a9 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -165,6 +165,13 @@ added: v12.7.0 Enable experimental resolution using the `exports` field in `package.json`. +### `--experimental-json-modules` + + +Enable experimental JSON support for the ES Module loader. + ### `--experimental-modules`