-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
Suggestions:
- The
exportsfield shouldn't stripped from the publishedpackage.jsonand noindex.mjsfile is included. @n1ru4l I found that you raised this issue earlier, (though not sure why it was closed) exports map and .mjs extension graphql-hive/bob#16 - Don't bundle. Publish as commonjs unbundled with both commonjs and ESM entrypoints. This can also allow consumers to deep import files rather than via their named exports. This should be encouraged in the documentation. The entrypoints can remain mostly for static analysis.
- As an alternative, perhaps consider perhaps only publishing ESM. https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
jaydenseric