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 657a8af commit de3fdfaCopy full SHA for de3fdfa
doc/api/esm.md
@@ -667,7 +667,10 @@ CommonJS and ES module instances of the package:
667
668
```js
669
// ./node_modules/pkg/index.mjs
670
- export state from './state.cjs';
+ import state from './state.cjs';
671
+ export {
672
+ state
673
+ };
674
```
675
676
Even if `pkg` is used via both `require` and `import` in an application (for
0 commit comments