Skip to content

chore(examples): use local polyfills when possible #6076

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
Feb 27, 2024

Conversation

dhayab
Copy link
Member

@dhayab dhayab commented Feb 26, 2024

Summary

For our e2e tests we add polyfills in e-commerce examples, to include unsupported methods in IE11. This PR replaces remote polyfill links with local scripts.

Important

With this PR, IE11 testing is only performed on InstantSearch.js (js and js-umd). This change is temporary.

Passing CI

Copy link

codesandbox-ci bot commented Feb 26, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 51cf925:

Sandbox Source
react-instantsearch-app Configuration
example-react-instantsearch-default-theme Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-vue-instantsearch-default-theme Configuration

@dhayab dhayab force-pushed the chore/replace-polyfill-io branch from 78aa494 to bed9085 Compare February 26, 2024 21:41
@dhayab dhayab changed the title chore(examples): switch from polyfill.io to core-js on cdn chore(examples): switch to local polyfills for e-commerce examples when possible Feb 26, 2024
@dhayab dhayab changed the title chore(examples): switch to local polyfills for e-commerce examples when possible chore(examples): use local polyfills when possible Feb 26, 2024
@dhayab dhayab marked this pull request as ready for review February 26, 2024 22:05
@dhayab dhayab requested review from a team, sarahdayan and aymeric-giraudet and removed request for a team February 26, 2024 22:12
@dhayab
Copy link
Member Author

dhayab commented Feb 27, 2024

Redrafting the PR, since this morning even the pinned version of the polyfill.io URL fails.

@dhayab dhayab marked this pull request as draft February 27, 2024 08:43
@dhayab dhayab force-pushed the chore/replace-polyfill-io branch from 2567a45 to 51cf925 Compare February 27, 2024 16:13
@dhayab dhayab marked this pull request as ready for review February 27, 2024 16:13
@dhayab dhayab requested a review from Haroenv February 27, 2024 16:24
module.exports = {
flavors: ['js', 'js-umd', 'react', 'vue'].filter(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a small chance this is used in jsdoc type somewhere, do you mind checking? not sure if I changed it to string at a later point

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the current codebase and commits in the change history of this file, I could not find anything.

@dhayab dhayab merged commit f258b2e into master Feb 27, 2024
@dhayab dhayab deleted the chore/replace-polyfill-io branch February 27, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants