Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: avoid proposal syntax in code example
  • Loading branch information
alexzherdev authored and Alex Zherdev committed Nov 28, 2019
commit c01d9c14e34f68b37db2589cd6604aec64242e73
5 changes: 4 additions & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,10 @@ CommonJS and ES module instances of the package:

```js
// ./node_modules/pkg/index.mjs
export state from './state.cjs';
import state from './state.cjs';
export {
state
};
```

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