Skip to content

Commit

Permalink
Remove Immer ES5 legacy compat
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Jan 14, 2023
1 parent 7b3f7e2 commit 606897f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/toolkit/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { enableES5 } from 'immer'
export * from 'redux'
export {
default as createNextState,
Expand All @@ -18,12 +17,6 @@ export type {
export { createDraftSafeSelector } from './createDraftSafeSelector'
export type { ThunkAction, ThunkDispatch, ThunkMiddleware } from 'redux-thunk'

// We deliberately enable Immer's ES5 support, on the grounds that
// we assume RTK will be used with React Native and other Proxy-less
// environments. In addition, that's how Immer 4 behaved, and since
// we want to ship this in an RTK minor, we should keep the same behavior.
enableES5()

export {
// js
configureStore,
Expand Down

0 comments on commit 606897f

Please sign in to comment.