From 21d20ed5c6a0765b22a8f39568fd73c350035b4d Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Wed, 4 Sep 2024 09:57:38 -0700 Subject: [PATCH] chore: remove core-js and regenerator-runtime (#702) --- example/index.jsx | 3 --- package-lock.json | 16 +--------------- package.json | 4 +--- src/setupTest.js | 2 -- 4 files changed, 2 insertions(+), 23 deletions(-) diff --git a/example/index.jsx b/example/index.jsx index 52b37aec5..e4e245175 100644 --- a/example/index.jsx +++ b/example/index.jsx @@ -1,6 +1,3 @@ -import 'core-js/stable'; -import 'regenerator-runtime/runtime'; - import React from 'react'; import ReactDOM from 'react-dom'; import { diff --git a/package-lock.json b/package-lock.json index 8e6a0f3aa..a789c558f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,6 @@ "@testing-library/react": "12.1.5", "@testing-library/react-hooks": "^8.0.1", "axios-mock-adapter": "^1.22.0", - "core-js": "3.37.1", "husky": "8.0.3", "jest-environment-jsdom": "29.7.0", "jsdoc": "^4.0.0", @@ -52,8 +51,7 @@ "react-dom": "17.0.2", "react-redux": "^8.1.1", "react-router-dom": "^6.6.1", - "redux": "4.2.1", - "regenerator-runtime": "0.14.1" + "redux": "4.2.1" }, "peerDependencies": { "@openedx/frontend-build": ">= 14.0.0", @@ -7850,18 +7848,6 @@ "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", "dev": true }, - "node_modules/core-js": { - "version": "3.37.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.37.1.tgz", - "integrity": "sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-js-compat": { "version": "3.37.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.37.1.tgz", diff --git a/package.json b/package.json index fee5a6618..f7382ffc3 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "@testing-library/react": "12.1.5", "@testing-library/react-hooks": "^8.0.1", "axios-mock-adapter": "^1.22.0", - "core-js": "3.37.1", "husky": "8.0.3", "jest-environment-jsdom": "29.7.0", "jsdoc": "^4.0.0", @@ -51,8 +50,7 @@ "react-dom": "17.0.2", "react-redux": "^8.1.1", "react-router-dom": "^6.6.1", - "redux": "4.2.1", - "regenerator-runtime": "0.14.1" + "redux": "4.2.1" }, "dependencies": { "@cospired/i18n-iso-languages": "4.2.0", diff --git a/src/setupTest.js b/src/setupTest.js index 82d22731d..f2513825c 100644 --- a/src/setupTest.js +++ b/src/setupTest.js @@ -1,6 +1,4 @@ /* eslint-disable import/no-extraneous-dependencies */ -import 'core-js/stable'; -import 'regenerator-runtime/runtime'; import '@testing-library/jest-dom'; // These configuration values are usually set in webpack's EnvironmentPlugin however