| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -654,7 +654,10 @@ CommonJS and ES module instances of the package: | |||
| 654 | 654 | ||
| 655 | 655 | ```js | |
| 656 | 656 | // ./node_modules/pkg/index.mjs | |
| 657 | - export state from './state.cjs'; | ||
| 657 | + import state from './state.cjs'; | ||
| 658 | + export { | ||
| 659 | + state | ||
| 660 | + }; | ||
| 658 | 661 | ``` | |
| 659 | 662 | ||
| 660 | 663 | Even if `pkg` is used via both `require` and `import` in an application (for | |
| Back | FazBrowse Home | New Git URL |
0 commit comments