mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -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
1e7c567734
commit
20dbce17d5
1 file changed
+4
-1
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user