diff --git a/app/soapbox/utils/soapbox-prop-types.ts b/app/soapbox/utils/soapbox-prop-types.ts deleted file mode 100644 index b7457957c..000000000 --- a/app/soapbox/utils/soapbox-prop-types.ts +++ /dev/null @@ -1,9 +0,0 @@ -import PropTypes from 'prop-types'; - -export default { - me: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.oneOf([false, null]), - ]), - meLoggedIn: PropTypes.string, -}; diff --git a/babel.config.js b/babel.config.js index f999f83ef..159768c3a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -29,13 +29,9 @@ module.exports = (api) => { config.plugins.push(...[ 'lodash', [ - 'transform-react-remove-prop-types', { mode: 'remove', removeImport: true, - additionalLibraries: [ - 'react-immutable-proptypes', - ], }, ], '@babel/transform-react-inline-elements', diff --git a/package.json b/package.json index 166058d28..a5dee5560 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,6 @@ "babel-plugin-lodash": "^3.3.4", "babel-plugin-preval": "^5.1.0", "babel-plugin-react-intl": "^7.5.20", - "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "babel-plugin-transform-require-context": "^0.1.1", "blurhash": "^2.0.0", "bootstrap-icons": "^1.5.0", @@ -142,7 +141,6 @@ "postcss": "^8.4.14", "postcss-loader": "^7.0.0", "process": "^0.11.10", - "prop-types": "^15.5.10", "punycode": "^2.1.1", "qrcode.react": "^3.0.2", "react": "^18.0.0", @@ -152,7 +150,6 @@ "react-helmet": "^6.1.0", "react-hot-toast": "^2.4.0", "react-hotkeys": "^1.1.4", - "react-immutable-proptypes": "^2.2.0", "react-immutable-pure-component": "^2.2.2", "react-inlinesvg": "^3.0.0", "react-intl": "^5.0.0", diff --git a/webpack/rules/node-modules.ts b/webpack/rules/node-modules.ts index f6f11b041..fb9a2ef39 100644 --- a/webpack/rules/node-modules.ts +++ b/webpack/rules/node-modules.ts @@ -17,9 +17,6 @@ const rule: RuleSetRule = { loader: 'babel-loader', options: { babelrc: false, - plugins: [ - 'transform-react-remove-prop-types', - ], cacheDirectory: join(settings.cache_path, 'babel-loader-node-modules'), cacheCompression: env.NODE_ENV === 'production', compact: false, diff --git a/yarn.lock b/yarn.lock index 55a7f1d73..583c2059c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3831,11 +3831,6 @@ babel-plugin-react-intl@^7.5.20: intl-messageformat-parser "^5.3.7" schema-utils "^2.6.6" -babel-plugin-transform-react-remove-prop-types@^0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a" - integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA== - babel-plugin-transform-require-context@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-require-context/-/babel-plugin-transform-require-context-0.1.1.tgz#319b545ca83080b5062776b46cc9b8b346fea9a6" @@ -6700,7 +6695,7 @@ intl-pluralrules@^1.3.1: resolved "https://registry.yarnpkg.com/intl-pluralrules/-/intl-pluralrules-1.3.1.tgz#304ec4038a597894f6616633cbf5e66fb3dbee04" integrity sha512-sNYPls1Q4fyN0EGLFVJ7TIuaMWln01LupLozfIBt69rHK0DHehghMSz6ejfnSklgRddnyQSEaQPIU6d9TCKH3w== -invariant@^2.2.2, invariant@^2.2.4: +invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== @@ -9453,13 +9448,6 @@ react-hotkeys@^1.1.4: mousetrap "^1.5.2" prop-types "^15.6.0" -react-immutable-proptypes@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/react-immutable-proptypes/-/react-immutable-proptypes-2.2.0.tgz#cce96d68cc3c18e89617cbf3092d08e35126af4a" - integrity sha512-Vf4gBsePlwdGvSZoLSBfd4HAP93HDauMY4fDjXhreg/vg6F3Fj/MXDNyTbltPC/xZKmZc+cjLu3598DdYK6sgQ== - dependencies: - invariant "^2.2.2" - react-immutable-pure-component@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/react-immutable-pure-component/-/react-immutable-pure-component-2.2.2.tgz#3014d3e20cd5a7a4db73b81f1f1464f4d351684b"