Skip to content
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

Merged
merged 2 commits into from
May 12, 2022
Merged

fix(geo): Point to react-map-gl es5 bundle #1887

merged 2 commits into from
May 12, 2022

Conversation

slaymance
Copy link
Contributor

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 of react-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

  • PR description included
  • yarn test passes
  • Tests are updated - N/A
  • No side effects or sideEffects field updated - N/A
  • Relevant documentation is changed or added (and PR referenced) - N/A

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@slaymance slaymance added React An issue or a feature-request for React platform Geo labels May 12, 2022
@slaymance slaymance self-assigned this May 12, 2022
@changeset-bot
Copy link

changeset-bot bot commented May 12, 2022

🦋 Changeset detected

Latest commit: f31f3d3

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

This PR includes changesets to release 1 package
Name Type
@aws-amplify/ui-react Patch

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

@slaymance slaymance temporarily deployed to ci May 12, 2022 15:30 Inactive
@slaymance slaymance temporarily deployed to ci May 12, 2022 15:30 Inactive
@slaymance slaymance temporarily deployed to ci May 12, 2022 15:30 Inactive
@slaymance slaymance temporarily deployed to ci May 12, 2022 15:30 Inactive
@slaymance slaymance temporarily deployed to ci May 12, 2022 18:43 Inactive
@slaymance slaymance temporarily deployed to ci May 12, 2022 18:43 Inactive
@slaymance slaymance temporarily deployed to ci May 12, 2022 18:43 Inactive
@slaymance slaymance temporarily deployed to ci May 12, 2022 18:43 Inactive
Copy link
Contributor

@zchenwei zchenwei left a 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

@slaymance
Copy link
Contributor Author

@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.

@slaymance slaymance merged commit fb605b8 into main May 12, 2022
@slaymance slaymance deleted the react-map-es5 branch May 12, 2022 19:54
@github-actions github-actions bot mentioned this pull request May 12, 2022
slaymance added a commit that referenced this pull request May 17, 2022
slaymance added a commit that referenced this pull request May 17, 2022
* Revert "fix(geo): Point to react-map-gl es5 bundle (#1887)"

This reverts commit fb605b8.

* Create tough-sheep-cry.md
wlee221 pushed a commit that referenced this pull request May 19, 2022
* Revert "fix(geo): Point to react-map-gl es5 bundle (#1887)"

This reverts commit fb605b8.

* Create tough-sheep-cry.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Geo React An issue or a feature-request for React platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants