From 417216cb16f94f0cfb22b639762f262abaf9fa06 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 16 Jul 2025 21:56:18 -0400 Subject: [PATCH] Revert "chore: Patch `prop-types` default export (#9656)" (#9659) This reverts commit f5db27396a63a5ac55039ab66116a5ffbb936217. --- app/index.tsx | 1 - patches/prop-types+15.8.1.patch | 11 ----------- 2 files changed, 12 deletions(-) delete mode 100644 patches/prop-types+15.8.1.patch diff --git a/app/index.tsx b/app/index.tsx index 82f7822624..ede59695e2 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -88,7 +88,6 @@ window.addEventListener("load", async () => { if (!env.GOOGLE_ANALYTICS_ID || !window.ga) { return; } - // https://github.com/googleanalytics/autotrack/issues/137#issuecomment-305890099 await import("autotrack/autotrack.js"); window.ga("require", "outboundLinkTracker"); diff --git a/patches/prop-types+15.8.1.patch b/patches/prop-types+15.8.1.patch deleted file mode 100644 index a6a0dd69b0..0000000000 --- a/patches/prop-types+15.8.1.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff --git a/node_modules/prop-types/index.js b/node_modules/prop-types/index.js -index e9ef51d..b68512a 100644 ---- a/node_modules/prop-types/index.js -+++ b/node_modules/prop-types/index.js -@@ -17,3 +17,6 @@ if (process.env.NODE_ENV !== 'production') { - // http://fb.me/prop-types-in-prod - module.exports = require('./factoryWithThrowingShims')(); - } -+ -+// ESM default export compatibility for bundlers like rolldown-vite -+module.exports.default = module.exports;