JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.76k stars 426 forks source link

refactor: Ensure `react/jsx-runtime` isn't inlined into bundle #3186

Closed rschristian closed 1 year ago

rschristian commented 1 year ago

Currently, react/jsx-runtime is being inline into your bundles due to it not being marked as external. You can plainly see this in the built bundles, React's license acts as an easy to spot annotation.

This bloats the bundle and makes it incompatible with Preact (see https://github.com/preactjs/preact/issues/3870), as React cannot be aliased out if it's being inlined.

rschristian commented 1 year ago

Thanks!