Skip to content

Commit 6233356

Browse files
alexzherdevaddaleax
authored andcommitted
doc: avoid proposal syntax in code example
PR-URL: #30685 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 0f42727 commit 6233356

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/api/esm.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,10 @@ CommonJS and ES module instances of the package:
654654

655655
```js
656656
// ./node_modules/pkg/index.mjs
657-
export state from './state.cjs';
657+
import state from './state.cjs';
658+
export {
659+
state
660+
};
658661
```
659662

660663
Even if `pkg` is used via both `require` and `import` in an application (for

0 commit comments

Comments
 (0)