diff --git a/patches/react-server-dom-webpack+19.0.0-canary-adb717393-20240411.patch b/patches/react-server-dom-webpack+19.0.0-canary-adb717393-20240411.patch new file mode 100644 index 0000000000..56b7236d31 --- /dev/null +++ b/patches/react-server-dom-webpack+19.0.0-canary-adb717393-20240411.patch @@ -0,0 +1,683 @@ +diff --git a/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js b/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +index dcb23c5..9f5ee0b 100644 +--- a/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js ++++ b/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +@@ -128,7 +128,7 @@ var chunkCache = new Map(); + + function requireAsyncModule(id) { + // We've already loaded all the chunks. We can require the module. +- var promise = __webpack_require__(id); ++ var promise = __bsky_require__(id); + + if (typeof promise.then !== 'function') { + // This wasn't a promise after all. +@@ -195,7 +195,7 @@ function preloadModule(metadata) { + // Increase priority if necessary. + + function requireModule(metadata) { +- var moduleExports = __webpack_require__(metadata[ID]); ++ var moduleExports = __bsky_require__(metadata[ID]); + + if (isAsyncImport(metadata)) { + if (typeof moduleExports.then !== 'function') ; else if (moduleExports.status === 'fulfilled') { +@@ -227,9 +227,9 @@ var chunkMap = new Map(); + * of chunks that come from Flight and may not be known to the webpack runtime + */ + +-var webpackGetChunkFilename = __webpack_require__.u; ++var webpackGetChunkFilename = __bsky_require__.u; + +-__webpack_require__.u = function (chunkId) { ++__bsky_require__.u = function (chunkId) { + var flightChunk = chunkMap.get(chunkId); + + if (flightChunk !== undefined) { +@@ -241,7 +241,7 @@ __webpack_require__.u = function (chunkId) { + + function loadChunk(chunkId, filename) { + chunkMap.set(chunkId, filename); +- return __webpack_chunk_load__(chunkId); ++ return __bsky_chunk_load__(chunkId); + } + + var ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; +diff --git a/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js b/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js +index 6ad0195..a400d00 100644 +--- a/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js ++++ b/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js +@@ -81,7 +81,7 @@ const chunkCache = new Map(); + + function requireAsyncModule(id) { + // We've already loaded all the chunks. We can require the module. +- const promise = __webpack_require__(id); ++ const promise = __bsky_require__(id); + + if (typeof promise.then !== 'function') { + // This wasn't a promise after all. +@@ -148,7 +148,7 @@ function preloadModule(metadata) { + // Increase priority if necessary. + + function requireModule(metadata) { +- let moduleExports = __webpack_require__(metadata[ID]); ++ let moduleExports = __bsky_require__(metadata[ID]); + + if (isAsyncImport(metadata)) { + if (typeof moduleExports.then !== 'function') ; else if (moduleExports.status === 'fulfilled') { +@@ -180,9 +180,9 @@ const chunkMap = new Map(); + * of chunks that come from Flight and may not be known to the webpack runtime + */ + +-const webpackGetChunkFilename = __webpack_require__.u; ++const webpackGetChunkFilename = __bsky_require__.u; + +-__webpack_require__.u = function (chunkId) { ++__bsky_require__.u = function (chunkId) { + const flightChunk = chunkMap.get(chunkId); + + if (flightChunk !== undefined) { +@@ -194,7 +194,7 @@ __webpack_require__.u = function (chunkId) { + + function loadChunk(chunkId, filename) { + chunkMap.set(chunkId, filename); +- return __webpack_chunk_load__(chunkId); ++ return __bsky_chunk_load__(chunkId); + } + + const ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; +diff --git a/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js b/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +index 8573fab..1b34e95 100644 +--- a/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js ++++ b/node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +@@ -8,8 +8,8 @@ + LICENSE file in the root directory of this source tree. + */ + 'use strict';var u=require("react-dom"),v={stream:!0};function z(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}var A=new Map; +-function B(a){var b=__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function C(){} +-function D(a){for(var b=a[1],c=[],e=0;e