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 addaleax committed Nov 30, 2019
1 parent 0f42727 commit 6233356
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/api/esm.md
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 6233356

Please sign in to comment.