This repository was archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
EVG-17465 Install react-virtualized and source map explorer #12
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b6a1d19
Build source map visualizations of prod builds
khelif96 5fdda52
Install react-virtualized
khelif96 c1851d6
Add dead code removal and tree shaking
khelif96 8ea9dad
Merge branch 'main' into EVG-17465
khelif96 ce15a32
Merge branch 'main' into EVG-17465
khelif96 1815601
Use correct content_type and cr
khelif96 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import fs from "fs"; | ||
| import path from "path"; | ||
|
|
||
| // Manually perform dead code removal on react-virtualized | ||
| // https://github.com/bvaughn/react-virtualized/issues/1632 | ||
| // vite does not automatically eliminate dead code so we need to do it manually. | ||
| const DEAD_CODE = `import { bpfrpt_proptype_WindowScroller } from "../WindowScroller.js"`; | ||
| export default () => { | ||
| return { | ||
| name: "my:react-virtualized", | ||
| configResolved() { | ||
| const file = require | ||
| .resolve("react-virtualized") | ||
| .replace( | ||
| path.join("dist", "commonjs", "index.js"), | ||
| path.join("dist", "es", "WindowScroller", "utils", "onScroll.js") | ||
| ); | ||
| const code = fs.readFileSync(file, "utf-8"); | ||
| const modified = code.replace(DEAD_CODE, ""); | ||
| fs.writeFileSync(file, modified); | ||
| }, | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,6 +79,15 @@ | |
| "@jridgewell/gen-mapping" "^0.3.2" | ||
| jsesc "^2.5.1" | ||
|
|
||
| "@babel/generator@^7.18.13": | ||
| version "7.18.13" | ||
| resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.13.tgz#59550cbb9ae79b8def15587bdfbaa388c4abf212" | ||
| integrity sha512-CkPg8ySSPuHTYPJYo7IRALdqyjM9HCbt/3uOBEFbzyGVP6Mn8bwFPB0jX6982JVNBlYzM1nnPkfjuXSOPtQeEQ== | ||
| dependencies: | ||
| "@babel/types" "^7.18.13" | ||
| "@jridgewell/gen-mapping" "^0.3.2" | ||
| jsesc "^2.5.1" | ||
|
|
||
| "@babel/helper-annotate-as-pure@^7.18.6": | ||
| version "7.18.6" | ||
| resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" | ||
|
|
@@ -313,6 +322,11 @@ | |
| resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.11.tgz#68bb07ab3d380affa9a3f96728df07969645d2d9" | ||
| integrity sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ== | ||
|
|
||
| "@babel/parser@^7.18.13": | ||
| version "7.18.13" | ||
| resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.13.tgz#5b2dd21cae4a2c5145f1fbd8ca103f9313d3b7e4" | ||
| integrity sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg== | ||
|
|
||
| "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": | ||
| version "7.18.6" | ||
| resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz#da5b8f9a580acdfbe53494dba45ea389fb09a4d2" | ||
|
|
@@ -1111,7 +1125,7 @@ | |
| dependencies: | ||
| regenerator-runtime "^0.13.2" | ||
|
|
||
| "@babel/runtime@^7.0.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": | ||
| "@babel/runtime@^7.0.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": | ||
| version "7.18.9" | ||
| resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.9.tgz#b4fcfce55db3d2e5e080d2490f608a3b9f407f4a" | ||
| integrity sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw== | ||
|
|
@@ -1150,6 +1164,22 @@ | |
| debug "^4.1.0" | ||
| globals "^11.1.0" | ||
|
|
||
| "@babel/traverse@^7.12.12": | ||
| version "7.18.13" | ||
| resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.13.tgz#5ab59ef51a997b3f10c4587d648b9696b6cb1a68" | ||
| integrity sha512-N6kt9X1jRMLPxxxPYWi7tgvJRH/rtoU+dbKAPDM44RFHiMH8igdsaSBgFeskhSl/kLWLDUvIh1RXCrTmg0/zvA== | ||
| dependencies: | ||
| "@babel/code-frame" "^7.18.6" | ||
| "@babel/generator" "^7.18.13" | ||
| "@babel/helper-environment-visitor" "^7.18.9" | ||
| "@babel/helper-function-name" "^7.18.9" | ||
| "@babel/helper-hoist-variables" "^7.18.6" | ||
| "@babel/helper-split-export-declaration" "^7.18.6" | ||
| "@babel/parser" "^7.18.13" | ||
| "@babel/types" "^7.18.13" | ||
| debug "^4.1.0" | ||
| globals "^11.1.0" | ||
|
|
||
| "@babel/types@^7.0.0", "@babel/types@^7.12.11", "@babel/types@^7.12.7", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.2.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": | ||
| version "7.18.10" | ||
| resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.10.tgz#4908e81b6b339ca7c6b7a555a5fc29446f26dde6" | ||
|
|
@@ -1159,6 +1189,15 @@ | |
| "@babel/helper-validator-identifier" "^7.18.6" | ||
| to-fast-properties "^2.0.0" | ||
|
|
||
| "@babel/types@^7.18.13": | ||
| version "7.18.13" | ||
| resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.13.tgz#30aeb9e514f4100f7c1cb6e5ba472b30e48f519a" | ||
| integrity sha512-ePqfTihzW0W6XAU+aMw2ykilisStJfDnsejDCXRchCcMJ4O0+8DhPXf2YUbZ6wjBlsEmZwLK/sPweWtu8hcJYQ== | ||
| dependencies: | ||
| "@babel/helper-string-parser" "^7.18.10" | ||
| "@babel/helper-validator-identifier" "^7.18.6" | ||
| to-fast-properties "^2.0.0" | ||
|
|
||
| "@base2/[email protected]": | ||
| version "1.0.1" | ||
| resolved "https://registry.yarnpkg.com/@base2/pretty-print-object/-/pretty-print-object-1.0.1.tgz#371ba8be66d556812dc7fb169ebc3c08378f69d4" | ||
|
|
@@ -3352,7 +3391,14 @@ | |
| resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb" | ||
| integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== | ||
|
|
||
| "@types/react-dom@^18.0.0", "@types/react-dom@^18.0.6": | ||
| "@types/[email protected]", "@types/react-dom@^18.0.0": | ||
| version "18.0.0" | ||
| resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.0.0.tgz#b13f8d098e4b0c45df4f1ed123833143b0c71141" | ||
| integrity sha512-49897Y0UiCGmxZqpC8Blrf6meL8QUla6eb+BBhn69dTXlmuOlzkfr7HHY/O8J25e1lTUMs+YYxSlVDAaGHCOLg== | ||
| dependencies: | ||
| "@types/react" "*" | ||
|
|
||
| "@types/react-dom@^18.0.6": | ||
| version "18.0.6" | ||
| resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.0.6.tgz#36652900024842b74607a17786b6662dd1e103a1" | ||
| integrity sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA== | ||
|
|
@@ -3366,7 +3412,24 @@ | |
| dependencies: | ||
| "@types/react" "*" | ||
|
|
||
| "@types/react@*", "@types/react@^18.0.15": | ||
| "@types/react-virtualized@^9.21.21": | ||
| version "9.21.21" | ||
| resolved "https://registry.yarnpkg.com/@types/react-virtualized/-/react-virtualized-9.21.21.tgz#65c96f25314f0fb3d40536929dc78112753b49e1" | ||
| integrity sha512-Exx6I7p4Qn+BBA1SRyj/UwQlZ0I0Pq7g7uhAp0QQ4JWzZunqEqNBGTmCmMmS/3N9wFgAGWuBD16ap7k8Y14VPA== | ||
| dependencies: | ||
| "@types/prop-types" "*" | ||
| "@types/react" "^17" | ||
|
|
||
| "@types/react@*", "@types/[email protected]", "@types/react@^17": | ||
| version "18.0.0" | ||
| resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.0.tgz#4be8aa3a2d04afc3ac2cc1ca43d39b0bd412890c" | ||
| integrity sha512-7+K7zEQYu7NzOwQGLR91KwWXXDzmTFODRVizJyIALf6RfLv2GDpqpknX64pvRVILXCpXi7O/pua8NGk44dLvJw== | ||
| dependencies: | ||
| "@types/prop-types" "*" | ||
| "@types/scheduler" "*" | ||
| csstype "^3.0.2" | ||
|
|
||
| "@types/react@^18.0.15": | ||
| version "18.0.17" | ||
| resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.17.tgz#4583d9c322d67efe4b39a935d223edcc7050ccf4" | ||
| integrity sha512-38ETy4tL+rn4uQQi7mB81G7V1g0u2ryquNmsVIOKUAEIDK+3CUjZ6rSRpdvS99dNBnkLFL83qfmtLacGOTIhwQ== | ||
|
|
@@ -5969,7 +6032,7 @@ dom-converter@^0.2.0: | |
| dependencies: | ||
| utila "~0.4" | ||
|
|
||
| dom-helpers@^5.0.1: | ||
| dom-helpers@^5.0.1, dom-helpers@^5.1.3: | ||
| version "5.2.1" | ||
| resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-5.2.1.tgz#d9400536b2bf8225ad98fe052e029451ac40e902" | ||
| integrity sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA== | ||
|
|
@@ -10534,7 +10597,7 @@ parallel-transform@^1.1.0: | |
| inherits "^2.0.3" | ||
| readable-stream "^2.1.5" | ||
|
|
||
| param-case@^3.0.3: | ||
| param-case@^3.0.3, param-case@^3.0.4: | ||
| version "3.0.4" | ||
| resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5" | ||
| integrity sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A== | ||
|
|
@@ -11272,6 +11335,11 @@ react-is@^16.13.1, react-is@^16.7.0: | |
| resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" | ||
| integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== | ||
|
|
||
| react-lifecycles-compat@^3.0.4: | ||
| version "3.0.4" | ||
| resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" | ||
| integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA== | ||
|
|
||
| react-merge-refs@^1.0.0: | ||
| version "1.1.0" | ||
| resolved "https://registry.yarnpkg.com/react-merge-refs/-/react-merge-refs-1.1.0.tgz#73d88b892c6c68cbb7a66e0800faa374f4c38b06" | ||
|
|
@@ -11329,6 +11397,18 @@ react-transition-group@^4.4.1: | |
| loose-envify "^1.4.0" | ||
| prop-types "^15.6.2" | ||
|
|
||
| react-virtualized@^9.22.3: | ||
| version "9.22.3" | ||
| resolved "https://registry.yarnpkg.com/react-virtualized/-/react-virtualized-9.22.3.tgz#f430f16beb0a42db420dbd4d340403c0de334421" | ||
| integrity sha512-MKovKMxWTcwPSxE1kK1HcheQTWfuCxAuBoSTf2gwyMM21NdX/PXUhnoP8Uc5dRKd+nKm8v41R36OellhdCpkrw== | ||
| dependencies: | ||
| "@babel/runtime" "^7.7.2" | ||
| clsx "^1.0.4" | ||
| dom-helpers "^5.1.3" | ||
| loose-envify "^1.4.0" | ||
| prop-types "^15.7.2" | ||
| react-lifecycles-compat "^3.0.4" | ||
|
|
||
| [email protected]: | ||
| version "18.2.0" | ||
| resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" | ||
|
|
@@ -11729,6 +11809,16 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: | |
| hash-base "^3.0.0" | ||
| inherits "^2.0.1" | ||
|
|
||
| rollup-plugin-visualizer@^5.8.0: | ||
| version "5.8.0" | ||
| resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.8.0.tgz#32f2fe23d4299e977c06c59c07255590354e3445" | ||
| integrity sha512-pY6j/7qHz5I9rB7d/bQoA5gX+2FbV3MBG055wrsFxDn550bgl0FNViRj6wDHh85PMswv+JVdZjhnMBzz/hdAHA== | ||
| dependencies: | ||
| nanoid "^3.3.4" | ||
| open "^8.4.0" | ||
| source-map "^0.7.3" | ||
| yargs "^17.5.1" | ||
|
|
||
| rollup@^2.75.6: | ||
| version "2.77.2" | ||
| resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.2.tgz#6b6075c55f9cc2040a5912e6e062151e42e2c4e3" | ||
|
|
@@ -13339,6 +13429,19 @@ vite-plugin-env-compatible@^1.1.1: | |
| resolved "https://registry.yarnpkg.com/vite-plugin-env-compatible/-/vite-plugin-env-compatible-1.1.1.tgz#2e11b059a5f3e8fc609d6a4bba84ca497081ee20" | ||
| integrity sha512-4lqhBWhOzP+SaCPoCVdmpM5cXzjKQV5jgFauxea488oOeElXo/kw6bXkMIooZhrh9q7gclTl8en6N9NmnqUwRQ== | ||
|
|
||
| vite-plugin-imp@^2.3.0: | ||
| version "2.3.0" | ||
| resolved "https://registry.yarnpkg.com/vite-plugin-imp/-/vite-plugin-imp-2.3.0.tgz#c53a3af947004a30e11b8267bf74c174dfeab90d" | ||
| integrity sha512-I7xSzptQw0yBxUmXawXqkzYvtZbqRF99ZeylmaTuYmJTVjZw5/TbKE7z3h95IKE4r/lkSWdKYmHEs3QwiXKS7g== | ||
| dependencies: | ||
| "@babel/core" "^7.12.10" | ||
| "@babel/generator" "^7.12.11" | ||
| "@babel/parser" "^7.12.11" | ||
| "@babel/traverse" "^7.12.12" | ||
| chalk "^4.1.0" | ||
| param-case "^3.0.4" | ||
| pascal-case "^3.1.2" | ||
|
|
||
| vite-tsconfig-paths@^3.5.0: | ||
| version "3.5.0" | ||
| resolved "https://registry.yarnpkg.com/vite-tsconfig-paths/-/vite-tsconfig-paths-3.5.0.tgz#bfdf93f8072eff04125112ea9602fd50ae8cdad9" | ||
|
|
@@ -13816,7 +13919,7 @@ yargs@^16.2.0: | |
| y18n "^5.0.5" | ||
| yargs-parser "^20.2.2" | ||
|
|
||
| yargs@^17.3.1: | ||
| yargs@^17.3.1, yargs@^17.5.1: | ||
| version "17.5.1" | ||
| resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.5.1.tgz#e109900cab6fcb7fd44b1d8249166feb0b36e58e" | ||
| integrity sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA== | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this file is not getting uploaded exactly correctly (here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the content_type it should work now 🤞