Skip to content
Closed
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>

Comment thread
guybedford marked this conversation as resolved.
Outdated
## 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