Closed targeral closed 3 years ago
Is it possible to provide exports in both esm and cjs formats. For example:
{ "exports": { ".": { "node": { "import": "./index.mjs", "require": "./index.cjs" }, "default": "./index.mjs" } } }
Possible yes, feasible no: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#gistcomment-3850849
Is it possible to provide exports in both esm and cjs formats. For example: