diff --git a/packages/react-test-renderer/package.json b/packages/react-test-renderer/package.json index ccfb6b8f18f22..a1709b6209805 100644 --- a/packages/react-test-renderer/package.json +++ b/packages/react-test-renderer/package.json @@ -21,7 +21,7 @@ "dependencies": { "object-assign": "^4.1.1", "react-is": "^16.8.6", - "react-shallow-renderer": "^16.13.0", + "react-shallow-renderer": "^16.13.1", "scheduler": "^0.19.0" }, "peerDependencies": { diff --git a/scripts/rollup/forks.js b/scripts/rollup/forks.js index 01fd4fee5aade..61a5f00b92e93 100644 --- a/scripts/rollup/forks.js +++ b/scripts/rollup/forks.js @@ -47,6 +47,11 @@ const forks = Object.freeze({ return 'shared/forks/object-assign.umd.js'; }, + 'react-shallow-renderer': () => { + // Use ESM build of `react-shallow-renderer`. + return 'react-shallow-renderer/esm/index.js'; + }, + // Without this fork, importing `shared/ReactSharedInternals` inside // the `react` package itself would not work due to a cyclical dependency. 'shared/ReactSharedInternals': (bundleType, entry, dependencies) => { diff --git a/yarn.lock b/yarn.lock index 50f7b5818f924..0e55143647cbf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10856,10 +10856,10 @@ react-native-web@^0.11.5: prop-types "^15.6.0" react-timer-mixin "^0.13.4" -react-shallow-renderer@^16.13.0: - version "16.13.0" - resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.13.0.tgz#18defe59ac922a9623fcbb8bed8db0da7c728fd4" - integrity sha512-qdFKyjjHSp5t4+Fs4479JqYDQnBdHi/IZEnGEmZZKZqoiwxjG4DKJPYd7YTaTmalUAqZlZR+K9ayz1+8tEctSg== +react-shallow-renderer@^16.13.1: + version "16.13.1" + resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.13.1.tgz#4cfd6dc0f05a8d4d261ff7a80e9b88f15491a00a" + integrity sha512-hLmExm5/ZnjodLgm/4oxYw4i7fL6LLPhbO9mF/4tmaZUurtLrp2aSeDHZmRk0SVCHXPz0VaEbb3Dqi5J7odz7Q== dependencies: object-assign "^4.1.1" react-is "^16.12.0"