diff options
author | Alex Zherdev <alex.zherdev@gmail.com> | 2019-11-27 10:43:06 -0800 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-30 01:41:19 +0100 |
commit | 62333566a3f52c1a7d51dae89695b34a6303fc42 (patch) | |
tree | af234130dd731eaf8c3ea08d0253360b87a59ca6 /doc | |
parent | 0f42727619398766fae66ab23173e02d8a25fff0 (diff) | |
download | android-node-v8-62333566a3f52c1a7d51dae89695b34a6303fc42.tar.gz android-node-v8-62333566a3f52c1a7d51dae89695b34a6303fc42.tar.bz2 android-node-v8-62333566a3f52c1a7d51dae89695b34a6303fc42.zip |
doc: avoid proposal syntax in code example
PR-URL: https://github.com/nodejs/node/pull/30685
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/esm.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md index caaecaa0b4..93b89adec1 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -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 |