mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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>
This commit is contained in:
1 parent
657a8af8a9
commit
de3fdfaa6f
1 file changed
+4
-1
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user