Skip to content

Commit

Permalink
doc: avoid proposal syntax in code example
Browse files Browse the repository at this point in the history
PR-URL: #30685
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
alexzherdev authored and MylesBorins committed Jan 12, 2020
1 parent 3d0e33e commit 005cad3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,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

0 comments on commit 005cad3

Please sign in to comment.