From 44119ddf2d941f24539e46fe5127dd58945357ea Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Sun, 12 Nov 2017 11:51:39 -0800 Subject: [PATCH] remove unneccessary double-polyfills from runtime --- package.json | 2 -- src/api.js | 11 ----------- yarn.lock | 4 ++-- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 87b74d03..1a5cdeaa 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,6 @@ "test": "test" }, "dependencies": { - "babel-polyfill": "^6.3.14", - "babel-runtime": "^6.3.19", "bignumber.js": "^4.1.0", "https-proxy-agent": "^1.0.0", "jsonschema": "^1.1.1", diff --git a/src/api.js b/src/api.js index 0aeb2b04..f2ad6c7c 100644 --- a/src/api.js +++ b/src/api.js @@ -1,17 +1,6 @@ /* @flow */ 'use strict' // eslint-disable-line strict -/* eslint-disable max-len */ -// Enable core-js polyfills. This allows use of ES6/7 extensions listed here: -// https://github.com/zloirock/core-js/blob/fb0890f32dabe8d4d88a4350d1b268446127132e/shim.js#L1-L103 -/* eslint-enable max-len */ - -// In node.js env, polyfill might be already loaded (from any npm package), -// that's why we do this check. -if (!global._babelPolyfill) { - require('babel-polyfill') -} - const _ = require('lodash') const EventEmitter = require('events').EventEmitter const common = require('./common') diff --git a/yarn.lock b/yarn.lock index 96a4a655..527cbe72 100644 --- a/yarn.lock +++ b/yarn.lock @@ -786,7 +786,7 @@ babel-plugin-transform-strict-mode@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-polyfill@^6.26.0, babel-polyfill@^6.3.14: +babel-polyfill@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" dependencies: @@ -868,7 +868,7 @@ babel-runtime@^5.8.20: dependencies: core-js "^1.0.0" -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0, babel-runtime@^6.3.19, babel-runtime@^6.6.1: +babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0, babel-runtime@^6.6.1: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: