diff --git a/packages/react-dom/server-rendering-stub.js b/packages/react-dom/server-rendering-stub.js index 41861fbfc9ea9..ef9f14d78230e 100644 --- a/packages/react-dom/server-rendering-stub.js +++ b/packages/react-dom/server-rendering-stub.js @@ -21,7 +21,9 @@ export { prefetchDNS, preconnect, preload, + preloadModule, preinit, + preinitModule, experimental_useFormStatus, experimental_useFormState, unstable_batchedUpdates, diff --git a/packages/react-dom/src/__tests__/react-dom-server-rendering-stub-test.js b/packages/react-dom/src/__tests__/react-dom-server-rendering-stub-test.js index 4a805d7edb1bc..ea4039a4510bb 100644 --- a/packages/react-dom/src/__tests__/react-dom-server-rendering-stub-test.js +++ b/packages/react-dom/src/__tests__/react-dom-server-rendering-stub-test.js @@ -39,15 +39,17 @@ describe('react-dom-server-rendering-stub', () => { }); // @gate enableFloat - it('provides preload and preinit exports', async () => { + it('provides preload, preloadModule, preinit, and preinitModule exports', async () => { function App() { ReactDOM.preload('foo', {as: 'style'}); + ReactDOM.preloadModule('foomodule'); ReactDOM.preinit('bar', {as: 'style'}); + ReactDOM.preinitModule('barmodule'); return