Skip to content

Commit

Permalink
Add imports for more commonly used RTK exports
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Feb 5, 2024
1 parent d7119ba commit 2d52427
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion packages/toolkit/.size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,21 @@ module.exports = entryPoints
),
)
.concat(
...[
[
{
name: `3. createSlice`,
import: { '@reduxjs/toolkit': '{ createSlice }' },
},
{
name: `3. createAsyncThunk`,
import: { '@reduxjs/toolkit': '{ createAsyncThunk }' },
},
{
name: `3. buildCreateSlice and asyncThunkCreator`,
import: {
'@reduxjs/toolkit': '{ buildCreateSlice, asyncThunkCreator }',
},
},
{
name: `3. createEntityAdapter`,
import: { '@reduxjs/toolkit': '{ createEntityAdapter }' },
Expand All @@ -162,6 +172,22 @@ module.exports = entryPoints
name: `3. configureStore`,
import: { '@reduxjs/toolkit': '{ configureStore }' },
},
{
name: `3. combineSlices`,
import: { '@reduxjs/toolkit': '{ combineSlices }' },
},
{
name: `3. createDynamicMiddleware`,
import: { '@reduxjs/toolkit': '{ createDynamicMiddleware }' },
},
{
name: `3. createDynamicMiddleware (react)`,
import: { '@reduxjs/toolkit/react': '{ createDynamicMiddleware }' },
},
{
name: `3. createListenerMiddleware`,
import: { '@reduxjs/toolkit': '{ createListenerMiddleware }' },
},
{
name: `3. createApi`,
import: { '@reduxjs/toolkit/query': '{ createApi }' },
Expand Down

0 comments on commit 2d52427

Please sign in to comment.