single-spa / single-spa-react

Single-spa lifecycles helper for React applications
https://single-spa.js.org/docs/ecosystem-react.html
MIT License
226 stars 63 forks source link

Fix types and exports of the package #197

Closed MilanKovacic closed 9 months ago

MilanKovacic commented 11 months ago

Fixes #170. This fix employs several strategies to achieve compatibility with all resolution strategies (node10, node16 - cjs, node16 - esm, bundler).

Here is the analysis by https://arethetypeswrong.github.io/. NOTE: Due to rollup not inserting a compatibility layer when transpiling, in rare instances, consumers might have to access the main export with ".default". This is caused by a mix of named, and default exports.

image

changeset-bot[bot] commented 11 months ago

🦋 Changeset detected

Latest commit: 4b6fabed35501afa869ae111ff52eb124f733ee9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------- | ----- | | single-spa-react | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR