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

Commit

Permalink
Fix an issue with bundle size increased
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandcote committed Jun 30, 2020
1 parent e7339e5 commit 751aa1d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
4 changes: 3 additions & 1 deletion packages/polyfills/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## [Unreleased] -->
## [Unreleased]

- Fix an issue with bundle size increased by ~20kb [#1518](https://github.com/Shopify/quilt/pull/1518)

## [1.2.0] - 2020-05-27

Expand Down
3 changes: 1 addition & 2 deletions packages/polyfills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@
},
"homepage": "https://github.com/Shopify/quilt/blob/master/packages/polyfills/README.md",
"dependencies": {
"@babel/polyfill": "^7.10.1",
"@shopify/useful-types": "^2.2.0",
"browser-unhandled-rejection": "^1.0.2",
"caniuse-api": "^3.0.0",
"core-js": "^2.6.5",
"formdata-polyfill": "^3.0.18",
"intersection-observer": "^0.5.1",
"intl-pluralrules": "^0.2.1",
"mutationobserver-shim": "^0.3.3",
"node-fetch": "^2.3.0",
"regenerator-runtime": "^0.13.4",
"tslib": "^1.9.3",
"url-polyfill": "^1.1.7",
"whatwg-fetch": "^3.0.0"
Expand Down
15 changes: 1 addition & 14 deletions packages/polyfills/src/base.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
// Cover all standardized ES6 APIs.
require('core-js/es6');
// Standard now
require('core-js/fn/array/includes');
require('core-js/fn/string/pad-start');
require('core-js/fn/string/pad-end');
require('core-js/fn/symbol/async-iterator');
require('core-js/fn/object/get-own-property-descriptors');
require('core-js/fn/object/values');
require('core-js/fn/object/entries');
require('core-js/fn/promise/finally');
// Ensure that we polyfill ES6 compat for anything web-related, if it exists.
require('core-js/web');
require('regenerator-runtime/runtime');
require('@babel/polyfill');
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,14 @@
"@babel/helper-regex" "^7.4.4"
regexpu-core "^4.6.0"

"@babel/polyfill@^7.10.1":
version "7.10.1"
resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.10.1.tgz#d56d4c8be8dd6ec4dce2649474e9b707089f739f"
integrity sha512-TviueJ4PBW5p48ra8IMtLXVkDucrlOZAIZ+EXqS3Ot4eukHbWiqcn7DcqpA1k5PcKtmJ4Xl9xwdv6yQvvcA+3g==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.4"

"@babel/preset-env@^7.4.3":
version "7.6.3"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.6.3.tgz#9e1bf05a2e2d687036d24c40e4639dc46cef2271"
Expand Down

0 comments on commit 751aa1d

Please sign in to comment.