-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(geo): Point to react-map-gl es5 bundle #1887
Conversation
🦋 Changeset detectedLatest commit: f31f3d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Their es5
ts config is kinda dumb. I believe they can totally have the code compiled down to es5
but still honor es6 module. target
and module
do not conflict between each other
@zchenwei Yeah I agree, it's not standard for publishing an es5 bundle which caused us to miss potential problems with es2020 features. I think I'll open a discussion regarding your point in the library's repository, but it's beyond the scope of this specific PR for now. |
This reverts commit fb605b8.
Description of changes
Some users have reported issues with ES 2020 features that are used by our
react-map-gl
dependency and certain build tools that they're using (e.g. Create React App v4). This PR updates our use ofreact-map-gl
to point to the ES5-compatible bundle provided by the library which will mitigate issues related to ES 2020 features.Issue #, if available
#1656
Description of how you validated changes
Manually validated this change by sym-linking it to a CRA4 sample application using the
<MapView>
component and verified that there were no build issues and the workaround suggested in #1656 is not needed.Checklist
yarn test
passessideEffects
field updated - N/ABy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.