From 53b947ef3c545abfb7a2f02ece2d5abd06947025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=ABck=20V=C3=A9zien?= Date: Mon, 9 Apr 2018 18:24:24 +0200 Subject: [PATCH] Add babel-runtime in dep, update polyfill to v7 --- package.json | 3 ++- src/main/bridge.js | 2 +- src/renderer/index.js | 2 +- yarn.lock | 9 ++++++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 36e51a4b..c7ed6f30 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "@ledgerhq/hw-transport-node-hid": "^4.7.6", "@ledgerhq/wallet-common": "^0.13.2", "axios": "^0.18.0", + "babel-runtime": "^6.26.0", "bcryptjs": "^2.4.3", "bitcoinjs-lib": "^3.3.2", "bs58check": "^2.1.1", @@ -97,6 +98,7 @@ }, "devDependencies": { "@babel/core": "7.0.0-beta.42", + "@babel/polyfill": "7.0.0-beta.42", "@babel/preset-env": "7.0.0-beta.42", "@babel/preset-flow": "7.0.0-beta.42", "@babel/preset-react": "7.0.0-beta.42", @@ -113,7 +115,6 @@ "babel-loader": "^8.0.0-beta.2", "babel-plugin-module-resolver": "^3.1.1", "babel-plugin-styled-components": "^1.5.0", - "babel-polyfill": "^6.26.0", "chalk": "^2.3.1", "chance": "^1.0.13", "concurrently": "^3.5.1", diff --git a/src/main/bridge.js b/src/main/bridge.js index d087d1a3..16954d3a 100644 --- a/src/main/bridge.js +++ b/src/main/bridge.js @@ -1,6 +1,6 @@ // @flow -import 'babel-polyfill' +import '@babel/polyfill' import { fork } from 'child_process' import { BrowserWindow, ipcMain } from 'electron' import objectPath from 'object-path' diff --git a/src/renderer/index.js b/src/renderer/index.js index f83e89d2..c251fee6 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -1,4 +1,4 @@ -require('babel-polyfill') +require('@babel/polyfill') const Raven = require('raven-js') require('../env') diff --git a/yarn.lock b/yarn.lock index db7a1e69..bb392ac0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -734,6 +734,13 @@ "@babel/helper-regex" "7.0.0-beta.42" regexpu-core "^4.1.3" +"@babel/polyfill@7.0.0-beta.42": + version "7.0.0-beta.42" + resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.0.0-beta.42.tgz#f7b0166370b4e0b407919bdf81ee4d0fcefbe77b" + dependencies: + core-js "^2.5.3" + regenerator-runtime "^0.11.1" + "@babel/preset-env@7.0.0-beta.42", "@babel/preset-env@^7.0.0-beta.42": version "7.0.0-beta.42" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.0.0-beta.42.tgz#671e688057c010b22a7811b965f7da5d79c472d3" @@ -10563,7 +10570,7 @@ regenerator-runtime@^0.10.5: version "0.10.5" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" -regenerator-runtime@^0.11.0: +regenerator-runtime@^0.11.0, regenerator-runtime@^0.11.1: version "0.11.1" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"