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 <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
  • Loading branch information
alexzherdev authored and addaleax committed Nov 30, 2019
1 parent 1e7c567 commit 20dbce1
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 @@ -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

0 comments on commit 20dbce1

Please sign in to comment.