Skip to content

Commit f69b65c

Browse files
committed
build(ui): Remove react remove prop types
1 parent f8e8949 commit f69b65c

File tree

3 files changed

+28
-23
lines changed

3 files changed

+28
-23
lines changed

babel.config.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,6 @@ const config: TransformOptions = {
2626
env: {
2727
production: {
2828
plugins: [
29-
[
30-
'transform-react-remove-prop-types',
31-
{
32-
mode: 'remove', // remove from bundle
33-
removeImport: true, // removes `prop-types` import statements
34-
classNameMatchers: [
35-
'SelectField',
36-
'FormField',
37-
'DeprecatedAsyncComponent',
38-
'DeprecatedAsyncView',
39-
],
40-
additionalLibraries: [/app\/sentryTypes$/],
41-
},
42-
],
4329
['babel-plugin-add-react-displayname'],
4430
'@sentry/babel-plugin-component-annotate',
4531
],

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
"ansi-to-react": "^6.1.6",
9898
"babel-loader": "^9.1.2",
9999
"babel-plugin-add-react-displayname": "^0.0.5",
100-
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
101100
"browserslist": "^4.22.2",
102101
"buffer": "^6.0.3",
103102
"cbor-web": "^8.1.0",

yarn.lock

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4638,11 +4638,6 @@ babel-plugin-polyfill-regenerator@^0.5.3:
46384638
dependencies:
46394639
"@babel/helper-define-polyfill-provider" "^0.4.3"
46404640

4641-
babel-plugin-transform-react-remove-prop-types@^0.4.24:
4642-
version "0.4.24"
4643-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a"
4644-
integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==
4645-
46464641
babel-preset-current-node-syntax@^1.0.0:
46474642
version "1.0.0"
46484643
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.0.tgz#cf5feef29551253471cfa82fc8e0f5063df07a77"
@@ -11054,7 +11049,16 @@ string-length@^4.0.1:
1105411049
char-regex "^1.0.2"
1105511050
strip-ansi "^6.0.0"
1105611051

11057-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
11052+
"string-width-cjs@npm:string-width@^4.2.0":
11053+
version "4.2.3"
11054+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
11055+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
11056+
dependencies:
11057+
emoji-regex "^8.0.0"
11058+
is-fullwidth-code-point "^3.0.0"
11059+
strip-ansi "^6.0.1"
11060+
11061+
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1105811062
version "4.2.3"
1105911063
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1106011064
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -11125,7 +11129,14 @@ string_decoder@^1.1.1, string_decoder@~1.1.1:
1112511129
dependencies:
1112611130
safe-buffer "~5.1.0"
1112711131

11128-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
11132+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
11133+
version "6.0.1"
11134+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
11135+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
11136+
dependencies:
11137+
ansi-regex "^5.0.1"
11138+
11139+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1112911140
version "6.0.1"
1113011141
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1113111142
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -12077,7 +12088,16 @@ word-wrap@~1.2.3:
1207712088
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4.tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f"
1207812089
integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==
1207912090

12080-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
12091+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
12092+
version "7.0.0"
12093+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
12094+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
12095+
dependencies:
12096+
ansi-styles "^4.0.0"
12097+
string-width "^4.1.0"
12098+
strip-ansi "^6.0.0"
12099+
12100+
wrap-ansi@^7.0.0:
1208112101
version "7.0.0"
1208212102
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1208312103
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)