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 BethGriggs committed Feb 6, 2020
1 parent 657a8af commit de3fdfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/api/esm.md
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 de3fdfa

Please sign in to comment.