From b6a1d19e0facc494e8731ffbf92d2e2a3c638b6e Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Wed, 24 Aug 2022 11:11:51 -0400 Subject: [PATCH 1/4] Build source map visualizations of prod builds --- .evergreen.yml | 14 +++++++++++ package.json | 2 ++ vite.config.ts | 6 +++++ yarn.lock | 66 ++++++++++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 86 insertions(+), 2 deletions(-) diff --git a/.evergreen.yml b/.evergreen.yml index 75863890..65ac645f 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -92,6 +92,19 @@ functions: permissions: public-read display_name: storybook_assets_map_ + attach-source-map: + command: s3.put + type: system + params: + aws_key: ${aws_key} + aws_secret: ${aws_secret} + local_file: "parsley/build/source_map.html" + remote_file: parsley/${task_id}/source_map.html + bucket: mciuploads + content_type: application/json + permissions: public-read + display_name: source_map_ + get-project: command: git.get_project type: setup @@ -188,6 +201,7 @@ tasks: - name: compile commands: - func: yarn-build + - func: attach-source-map - name: type_check commands: diff --git a/package.json b/package.json index 304ad456..14890e3f 100644 --- a/package.json +++ b/package.json @@ -83,10 +83,12 @@ "jest-watch-typeahead": "2.0.0", "lint-staged": "13.0.3", "prettier": "2.7.1", + "rollup-plugin-visualizer": "^5.8.0", "ts-jest": "28.0.7", "typescript": "^4.6.4", "vite": "^3.0.0", "vite-plugin-checker": "^0.4.9", + "vite-plugin-imp": "^2.3.0", "vite-tsconfig-paths": "^3.5.0" }, "resolutions": { diff --git a/vite.config.ts b/vite.config.ts index 30fbcd3e..e160b053 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,4 +1,5 @@ import react from "@vitejs/plugin-react"; +import { visualizer } from "rollup-plugin-visualizer"; import { defineConfig } from "vite"; import checker from "vite-plugin-checker"; import tsconfigPaths from "vite-tsconfig-paths"; @@ -33,6 +34,11 @@ export default defineConfig({ }), // Typescript checking checker({ typescript: true }), + // Bundle analyzer + visualizer({ + filename: "build/source_map.html", + template: "treemap", + }), ], // Setting jsxImportSource to @emotion/react raises a warning in the console. This line silences // the warning. (https://github.com/vitejs/vite/issues/8644) diff --git a/yarn.lock b/yarn.lock index 2f00fe88..1bad38b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -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/pretty-print-object@1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@base2/pretty-print-object/-/pretty-print-object-1.0.1.tgz#371ba8be66d556812dc7fb169ebc3c08378f69d4" @@ -10526,7 +10565,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== @@ -11721,6 +11760,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" @@ -13326,6 +13375,19 @@ vite-plugin-checker@^0.4.9: vscode-languageserver-textdocument "^1.0.1" vscode-uri "^3.0.2" +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" @@ -13803,7 +13865,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== From 5fdda52625cf66d3e3df8ed973a6af83cd1bce46 Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Wed, 24 Aug 2022 11:56:53 -0400 Subject: [PATCH 2/4] Install react-virtualized --- package.json | 8 ++++++-- yarn.lock | 49 +++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 14890e3f..234fe51f 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "@leafygreen-ui/typography": "13.1.1", "react": "18.2.0", "react-dom": "18.2.0", - "react-router-dom": "6.3.0" + "react-router-dom": "6.3.0", + "react-virtualized": "^9.22.3" }, "devDependencies": { "@babel/core": "^7.18.10", @@ -59,6 +60,7 @@ "@types/node": "^16.11.47", "@types/react": "^18.0.15", "@types/react-dom": "^18.0.6", + "@types/react-virtualized": "^9.21.21", "@typescript-eslint/eslint-plugin": "5.33.0", "@typescript-eslint/parser": "5.33.0", "@vitejs/plugin-react": "2.0.1", @@ -92,7 +94,9 @@ "vite-tsconfig-paths": "^3.5.0" }, "resolutions": { - "react-test-renderer": "18.2.0" + "react-test-renderer": "18.2.0", + "@types/react": "18.0.0", + "@types/react-dom": "18.0.0" }, "engines": { "node": ">=16.13.0" diff --git a/yarn.lock b/yarn.lock index 1bad38b1..d9ee24f7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1125,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== @@ -3391,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/react-dom@18.0.0", "@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== @@ -3405,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/react@18.0.0", "@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== @@ -6008,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== @@ -11303,6 +11327,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" @@ -11360,6 +11389,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" + react@18.2.0: version "18.2.0" resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" From c1851d6cdf89f5280a363f84d483a6e8718e888d Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Wed, 24 Aug 2022 11:57:26 -0400 Subject: [PATCH 3/4] Add dead code removal and tree shaking --- config/reactVirtualized/index.ts | 23 +++++++++++++++++++++++ tsconfig.json | 25 ++++++++++++++++++++----- tsconfig.node.json | 7 +++++-- vite.config.ts | 12 ++++++++++++ 4 files changed, 60 insertions(+), 7 deletions(-) create mode 100644 config/reactVirtualized/index.ts diff --git a/config/reactVirtualized/index.ts b/config/reactVirtualized/index.ts new file mode 100644 index 00000000..8bbb0e02 --- /dev/null +++ b/config/reactVirtualized/index.ts @@ -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); + }, + }; +}; diff --git a/tsconfig.json b/tsconfig.json index dc63414e..08e8eab2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,11 @@ "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, - "lib": ["DOM", "DOM.Iterable", "ESNext"], + "lib": [ + "DOM", + "DOM.Iterable", + "ESNext" + ], "allowJs": true, "skipLibCheck": true, "esModuleInterop": false, @@ -19,7 +23,18 @@ "baseUrl": "src", "noFallthroughCasesInSwitch": true, }, - "include": ["src", "config/jest/setup.ts"], - "exclude": ["node_modules", "vite.config.ts", "cypress.config.ts"], - "references": [{ "path": "./tsconfig.node.json" }] -} + "include": [ + "src", + "config/jest/setup.ts", + ], + "exclude": [ + "node_modules", + "vite.config.ts", + "cypress.config.ts" + ], + "references": [ + { + "path": "./tsconfig.node.json" + } + ] +} \ No newline at end of file diff --git a/tsconfig.node.json b/tsconfig.node.json index 4b772dea..ec101b27 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -5,5 +5,8 @@ "moduleResolution": "Node", "allowSyntheticDefaultImports": true }, - "include": ["vite.config.ts"] -} + "include": [ + "vite.config.ts", + "config/reactVirtualized/index.ts" + ] +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index e160b053..7da27a1b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,8 +2,10 @@ import react from "@vitejs/plugin-react"; import { visualizer } from "rollup-plugin-visualizer"; import { defineConfig } from "vite"; import checker from "vite-plugin-checker"; +import vitePluginImp from "vite-plugin-imp"; import tsconfigPaths from "vite-tsconfig-paths"; import path from "path"; +import reactVirtualized from "./config/reactVirtualized"; // https://vitejs.dev/config/ export default defineConfig({ @@ -32,6 +34,16 @@ export default defineConfig({ include: ["**/*.tsx", "**/*.ts"], // Only Typescript files should use fast refresh. fastRefresh: true, }), + vitePluginImp({ + optimize: true, + libList: [ + { + libName: "react-virtualized", + libDirectory: "dist/es", + }, + ], + }), + reactVirtualized(), // Typescript checking checker({ typescript: true }), // Bundle analyzer From 181560160fa1523be12e34209cfa84f57aa1e9dc Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Thu, 25 Aug 2022 15:10:21 -0400 Subject: [PATCH 4/4] Use correct content_type and cr --- .evergreen.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.evergreen.yml b/.evergreen.yml index 194d47b5..d00dc178 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -101,7 +101,7 @@ functions: local_file: "parsley/build/source_map.html" remote_file: parsley/${task_id}/source_map.html bucket: mciuploads - content_type: application/json + content_type: text/html permissions: public-read display_name: source_map_ diff --git a/package.json b/package.json index 8155e6ab..33feab12 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "react-router-dom": "6.3.0", - "react-virtualized": "^9.22.3" + "react-virtualized": "9.22.3" }, "devDependencies": { "@babel/core": "^7.18.10",