We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141a6e3 commit c01d9c1Copy full SHA for c01d9c1
doc/api/esm.md
@@ -654,7 +654,10 @@ CommonJS and ES module instances of the package:
654
655
```js
656
// ./node_modules/pkg/index.mjs
657
- export state from './state.cjs';
+ import state from './state.cjs';
658
+ export {
659
+ state
660
+ };
661
```
662
663
Even if `pkg` is used via both `require` and `import` in an application (for
0 commit comments