Skip to content

DL fixes for safari and false negatives for ES6 module support (PATCH) #14730

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

Merged
merged 3 commits into from
Jun 11, 2019
Merged

DL fixes for safari and false negatives for ES6 module support (PATCH) #14730

merged 3 commits into from
Jun 11, 2019

Conversation

alan-agius4
Copy link
Collaborator

Patch version of #14716 as it doesn't apply cleanly

… and iOS Safari 10.3

The nomodule polyfill needs to be loaded prior to any script and be
outside of webpack compilation because otherwise webpack will cause the
script to be wrapped in `window["webpackJsonp"]` which causes it to
fail.

This polyfill will only be injected when the either Safari 10.1 or iOS
Safari 10.3 support is required, which is based on the browsers  defined in browserslist file.

Fixes #14680
@alan-agius4 alan-agius4 requested a review from clydin June 11, 2019 12:44
@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Jun 11, 2019
@alan-agius4 alan-agius4 added target: rc This PR is targeted for the next release-candidate and removed target: major This PR is targeted for the next major release labels Jun 11, 2019
…s6 modules are being marked as not supported

caniuse-api only returns true for a feature when it's fully supported. This might causes redundant ES5 builds if users opt to support only browsers which do support ES6 modules but either require polyfills such as Safari 10.1 or when both bundles will be downloaded such as Edge 18

See: https://github.com/Nyalab/caniuse-api/blob/1b74c10257e36877709da4f6630513db10203a78/src/index.js#L49 and Nyalab/caniuse-api#82

Fixes #14580
@kyliau kyliau merged commit 4d7388f into angular:8.0.x Jun 11, 2019
@alan-agius4 alan-agius4 deleted the safari-nomodule-fix-patch branch June 11, 2019 17:10
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants