package.json exports


```type"exports": {    "./features/*": "./src/features/*.js"  },  "imports": {    "#internal/*": "./src/internal/*.js"  }```



```type// package.json{    "name": "my-package",    "type": "module",    "exports": {        ".": {            // Entry-point for `import "my-package"` in ESM            "import": "./esm/index.js",            // Entry-point for `require("my-package") in CJS            "require": "./commonjs/index.cjs",        },    },    // CJS fall-back for older versions of Node.js    "main": "./commonjs/index.cjs",}```


> [Publish ESM and CJS in a single package](https://antfu.me/posts/publish-esm-and-cjs)







