Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exports to package.json to satisfy nodejs --experimental-module u…
…sers Fixes #206 This ensures that consumers using --experimental-modules with node 12+ will import the esm version of this package. This package's export MUST have .mjs file extension... (because otherwise the entire package must be specified as type: module) This package's export MUST use exports field in the package.json see https://nodejs.org/api/packages.html#conditional-exports Not sure how to test this with a bunch of different project styles.. webpack and other loaders _should_ be fine with importing from the `module` field with a `.mjs` file extension?
- Loading branch information