react-fake-props
react-fake-props copied to clipboard
feat: support imported types
react-docgen@6 added importers feature (initial implementation merged at https://github.com/reactjs/react-docgen/pull/464, but docs have not been updated since then), which enabled support for imported types. We could rely on it after migration to v6.
v6 also turned package into pure ESM package (as documented at https://react-docgen.dev/docs/migrate/v6). To use v6, react-fake-props need to either build it to CommonJS module. Or turn itself into ESM package too. This PR switches react-fake-props to pure ESM package (using https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c as a guide), which is a breaking change.
Could switch to ESM-only package be accepted for next major release?
Yes to switching to ESM only 👍