Skip to content

Commit 005cad3

Browse files
alexzherdevMylesBorins
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 3d0e33e commit 005cad3

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
@@ -667,7 +667,10 @@ CommonJS and ES module instances of the package:
667667

668668
```js
669669
// ./node_modules/pkg/index.mjs
670-
export state from './state.cjs';
670+
import state from './state.cjs';
671+
export {
672+
state
673+
};
671674
```
672675

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

0 commit comments

Comments
 (0)