From 62333566a3f52c1a7d51dae89695b34a6303fc42 Mon Sep 17 00:00:00 2001 From: Alex Zherdev Date: Wed, 27 Nov 2019 10:43:06 -0800 Subject: doc: avoid proposal syntax in code example PR-URL: https://github.com/nodejs/node/pull/30685 Reviewed-By: Anna Henningsen Reviewed-By: Myles Borins --- doc/api/esm.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3