Skip to content

Commit 606897f

Browse files
committed
Remove Immer ES5 legacy compat
1 parent 7b3f7e2 commit 606897f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/toolkit/src/index.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { enableES5 } from 'immer'
21
export * from 'redux'
32
export {
43
default as createNextState,
@@ -18,12 +17,6 @@ export type {
1817
export { createDraftSafeSelector } from './createDraftSafeSelector'
1918
export type { ThunkAction, ThunkDispatch, ThunkMiddleware } from 'redux-thunk'
2019

21-
// We deliberately enable Immer's ES5 support, on the grounds that
22-
// we assume RTK will be used with React Native and other Proxy-less
23-
// environments. In addition, that's how Immer 4 behaved, and since
24-
// we want to ship this in an RTK minor, we should keep the same behavior.
25-
enableES5()
26-
2720
export {
2821
// js
2922
configureStore,

0 commit comments

Comments
 (0)