From 6cb92bd9d9a6355f44a80a3074f89595db48e8ee Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Sun, 22 Mar 2020 11:26:01 +0100 Subject: [PATCH] Configure babel to not rely on babel-runtime --- .babelrc | 6 +++++- package-lock.json | 7 +++++-- package.json | 1 - 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.babelrc b/.babelrc index e87b3c29..e1cf11c1 100644 --- a/.babelrc +++ b/.babelrc @@ -10,6 +10,10 @@ "transform-object-rest-spread", "syntax-dynamic-import", "dynamic-import-node", - "transform-runtime" + ["transform-runtime", { + "polyfill": false, + "regenerator": true, + "helpers": false + }] ] } diff --git a/package-lock.json b/package-lock.json index df5d3142..558bbd3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -909,6 +909,7 @@ "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, "requires": { "core-js": "^2.4.0", "regenerator-runtime": "^0.11.0" @@ -1223,7 +1224,8 @@ "core-js": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz", - "integrity": "sha1-rmh03GaTd4m4B1T/VCjfZoGcpQs=" + "integrity": "sha1-rmh03GaTd4m4B1T/VCjfZoGcpQs=", + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -3866,7 +3868,8 @@ "regenerator-runtime": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz", - "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==" + "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==", + "dev": true }, "regenerator-transform": { "version": "0.10.1", diff --git a/package.json b/package.json index 2604052e..07258966 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ ], "main": "lib/index.js", "dependencies": { - "babel-runtime": "^6.23.0", "bluebird": "^3.5.3" }, "devDependencies": {