From ccdc4caefe806c3648d7f04611bd5f3847d9018a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 1 Mar 2024 20:21:36 +0000 Subject: [PATCH] Remove loose-envify dep and browserify configs --- packages/react-art/package.json | 8 +------- packages/react-client/package.json | 8 -------- packages/react-dom/package.json | 6 ------ packages/react-interactions/package.json | 8 -------- packages/react-reconciler/package.json | 6 ------ packages/react-server-dom-turbopack/package.json | 8 +------- packages/react-server-dom-webpack/package.json | 8 +------- packages/react-server/package.json | 8 -------- packages/react/package.json | 8 -------- packages/scheduler/package.json | 10 +--------- 10 files changed, 4 insertions(+), 74 deletions(-) diff --git a/packages/react-art/package.json b/packages/react-art/package.json index 6061982c511d2..56824432539ac 100644 --- a/packages/react-art/package.json +++ b/packages/react-art/package.json @@ -24,7 +24,6 @@ "dependencies": { "art": "^0.10.1", "create-react-class": "^15.6.2", - "loose-envify": "^1.1.0", "scheduler": "^0.23.0" }, "peerDependencies": { @@ -39,10 +38,5 @@ "Circle.js", "Rectangle.js", "Wedge.js" - ], - "browserify": { - "transform": [ - "loose-envify" - ] - } + ] } diff --git a/packages/react-client/package.json b/packages/react-client/package.json index 73c2fb1b42f2b..82c7d855ad1c0 100644 --- a/packages/react-client/package.json +++ b/packages/react-client/package.json @@ -25,13 +25,5 @@ }, "peerDependencies": { "react": "^17.0.0" - }, - "dependencies": { - "loose-envify": "^1.1.0" - }, - "browserify": { - "transform": [ - "loose-envify" - ] } } diff --git a/packages/react-dom/package.json b/packages/react-dom/package.json index d497c9d4642fa..6ef48b292586c 100644 --- a/packages/react-dom/package.json +++ b/packages/react-dom/package.json @@ -17,7 +17,6 @@ }, "homepage": "https://react.dev/", "dependencies": { - "loose-envify": "^1.1.0", "scheduler": "^0.23.0" }, "peerDependencies": { @@ -89,10 +88,5 @@ "browser": { "./server.js": "./server.browser.js", "./static.js": "./static.browser.js" - }, - "browserify": { - "transform": [ - "loose-envify" - ] } } diff --git a/packages/react-interactions/package.json b/packages/react-interactions/package.json index 1e3c96630555f..effcf05151834 100644 --- a/packages/react-interactions/package.json +++ b/packages/react-interactions/package.json @@ -33,15 +33,7 @@ "engines": { "node": ">=0.10.0" }, - "dependencies": { - "loose-envify": "^1.1.0" - }, "peerDependencies": { "react": "^17.0.0" - }, - "browserify": { - "transform": [ - "loose-envify" - ] } } diff --git a/packages/react-reconciler/package.json b/packages/react-reconciler/package.json index dbad8904bbc5f..4f78d314d3463 100644 --- a/packages/react-reconciler/package.json +++ b/packages/react-reconciler/package.json @@ -29,12 +29,6 @@ "react": "^18.2.0" }, "dependencies": { - "loose-envify": "^1.1.0", "scheduler": "^0.23.0" - }, - "browserify": { - "transform": [ - "loose-envify" - ] } } diff --git a/packages/react-server-dom-turbopack/package.json b/packages/react-server-dom-turbopack/package.json index f2bd918fb6829..60a908b8efd39 100644 --- a/packages/react-server-dom-turbopack/package.json +++ b/packages/react-server-dom-turbopack/package.json @@ -84,12 +84,6 @@ }, "dependencies": { "acorn-loose": "^8.3.0", - "neo-async": "^2.6.1", - "loose-envify": "^1.1.0" - }, - "browserify": { - "transform": [ - "loose-envify" - ] + "neo-async": "^2.6.1" } } diff --git a/packages/react-server-dom-webpack/package.json b/packages/react-server-dom-webpack/package.json index fcef5efcadd90..d7418ee1cbfa0 100644 --- a/packages/react-server-dom-webpack/package.json +++ b/packages/react-server-dom-webpack/package.json @@ -85,12 +85,6 @@ }, "dependencies": { "acorn-loose": "^8.3.0", - "neo-async": "^2.6.1", - "loose-envify": "^1.1.0" - }, - "browserify": { - "transform": [ - "loose-envify" - ] + "neo-async": "^2.6.1" } } diff --git a/packages/react-server/package.json b/packages/react-server/package.json index 6e9e03780ec7f..405d68dbc3a79 100644 --- a/packages/react-server/package.json +++ b/packages/react-server/package.json @@ -27,13 +27,5 @@ }, "peerDependencies": { "react": "^17.0.0" - }, - "dependencies": { - "loose-envify": "^1.1.0" - }, - "browserify": { - "transform": [ - "loose-envify" - ] } } diff --git a/packages/react/package.json b/packages/react/package.json index b9f7c923b18b7..76ca54e5127d1 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -40,13 +40,5 @@ }, "engines": { "node": ">=0.10.0" - }, - "dependencies": { - "loose-envify": "^1.1.0" - }, - "browserify": { - "transform": [ - "loose-envify" - ] } } diff --git a/packages/scheduler/package.json b/packages/scheduler/package.json index 8128befb28c89..5f1537424e8b2 100644 --- a/packages/scheduler/package.json +++ b/packages/scheduler/package.json @@ -15,9 +15,6 @@ "url": "https://github.com/facebook/react/issues" }, "homepage": "https://react.dev/", - "dependencies": { - "loose-envify": "^1.1.0" - }, "files": [ "LICENSE", "README.md", @@ -27,10 +24,5 @@ "unstable_post_task.js", "cjs/", "umd/" - ], - "browserify": { - "transform": [ - "loose-envify" - ] - } + ] }