Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Fix an issue with bundle size increased #1518

Merged
merged 1 commit into from
Jun 30, 2020
Merged

Conversation

alexandcote
Copy link
Contributor

Description

We had reports that the new version of @shopify/polyfills increase the bundle size by about 20kb. After some investigation, using directly the core-js import was the cause of the issue.

Instead of only include the polyfills needed, the new version includes every polyfill.

Before After
image image

Type of change

Reverting to the original strategy until we move to core-js@3

  • `@shopify/polyfills Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above (Documentation fix and Test update does not need a changelog as we do not publish new version)

@alexandcote alexandcote requested review from marutypes and vsumner June 17, 2020 12:34
@alexandcote alexandcote self-assigned this Jun 17, 2020
@alexandcote alexandcote force-pushed the fix_bundle_size_increase branch from 6716081 to c8c3659 Compare June 17, 2020 12:35
@alexandcote alexandcote mentioned this pull request Jun 17, 2020
4 tasks
@alexandcote alexandcote force-pushed the fix_bundle_size_increase branch 2 times, most recently from 91b4e69 to 78c16ec Compare June 18, 2020 18:31
@IlanaB
Copy link

IlanaB commented Jun 24, 2020

can this be merged? i'm going to close https://github.com/Shopify/brochure2/pull/21128 in the meantime

@alexandcote alexandcote force-pushed the fix_bundle_size_increase branch from 78c16ec to 751aa1d Compare June 30, 2020 16:12
@alexandcote alexandcote merged commit b248aaa into master Jun 30, 2020
@alexandcote alexandcote deleted the fix_bundle_size_increase branch June 30, 2020 16:55
@b-ryu b-ryu temporarily deployed to production June 30, 2020 19:56 Inactive
@michenly michenly temporarily deployed to gem July 15, 2020 19:03 Inactive
@vsumner vsumner deployed to production-async-test-cleanup July 22, 2020 18:20 Active
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants