| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -667,7 +667,10 @@ CommonJS and ES module instances of the package: | |||
| 667 | 667 | ||
| 668 | 668 | ```js | |
| 669 | 669 | // ./node_modules/pkg/index.mjs | |
| 670 | - export state from './state.cjs'; | ||
| 670 | + import state from './state.cjs'; | ||
| 671 | + export { | ||
| 672 | + state | ||
| 673 | + }; | ||
| 671 | 674 | ``` | |
| 672 | 675 | ||
| 673 | 676 | Even if `pkg` is used via both `require` and `import` in an application (for | |
| Back | FazBrowse Home | New Git URL |
0 commit comments