feature: Include polyfill.io for web builds #2722
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@Julesssss
Details
Provide a custom
HtmlWebpackPlugin
option to prevent bundling the script tag that adds polyfill.io on desktopIt's not needed there - desktop already works with latest tech
The script tag that loads polyfill.io is only included on web (and mWeb)
The
ResizeObserver
is added as it's not included in thedefault
featuresIt's needed for the app to work on iOS 12 mWeb Safari
The
gated
flag is added to skip polyfilling a feature that is already supportednatively by the browser
Fixed Issues
Fixes #2520
Tests
Since I've made changes to the webpack config and the index file that's used for desktop as well please run the same steps on desktop too
No changes to the native platforms
QA Steps
Same as above
Tested On
Screenshots
Web
Mobile Web
Screen.Recording.2021-05-06.at.21.58.16.mov
Desktop