Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: ESM documentation consolidation and reordering #36046

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
add experimental anchors
  • Loading branch information
guybedford committed Nov 9, 2020
commit 6b9be0a990e83c607b535300cfc9d7cd7887b46c
8 changes: 8 additions & 0 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ hooks can provide this workflow in the future.

`require.cache` is not used by `import`. It has a separate cache.

<i id="#esm_experimental_json_modules"></i>

guybedford marked this conversation as resolved.
Show resolved Hide resolved
## JSON modules

> Stability: 1 - Experimental
Expand Down Expand Up @@ -488,6 +490,8 @@ node index.mjs # fails
node --experimental-json-modules index.mjs # works
```

<i id="#esm_experimental_wasm_modules"></i>

## Wasm modules

> Stability: 1 - Experimental
Expand All @@ -514,6 +518,8 @@ node --experimental-wasm-modules index.mjs

would provide the exports interface for the instantiation of `module.wasm`.

<i id="#esm_experimental_top_level_await"></i>

## Top-level `await`

> Stability: 1 - Experimental
Expand All @@ -540,6 +546,8 @@ console.log(five); // Logs `5`
node b.mjs # works
```

<i id="#esm_experimental_loaders"></i>

## Loaders

> Stability: 1 - Experimental
Expand Down