Skip to content

Commit c01d9c1

Browse files
alexzherdevAlex Zherdev
authored and
Alex Zherdev
committed
doc: avoid proposal syntax in code example
1 parent 141a6e3 commit c01d9c1

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)