Skip to content

Commit 41ae39d

Browse files
authored
Merge pull request #4284 from reduxjs/bugfix/rtk2-legacy-esm-config
2 parents 128ce81 + c9110af commit 41ae39d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

errors.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@
3737
"35": "Existing Redux context detected. If you already have a store set up, please use the traditional Redux setup.",
3838
"36": "When using custom hooks for context, all hooks need to be provided: .\\nHook was either not provided or not a function.",
3939
"37": "Warning: Middleware for RTK-Query API at reducerPath \"\" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!",
40-
"38": "Cannot refetch a query that has not been started yet."
41-
}
40+
"38": "Cannot refetch a query that has not been started yet.",
41+
"39": "called \\`injectEndpoints\\` to override already-existing endpointName without specifying \\`overrideExisting: true\\`"
42+
}

packages/toolkit/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const buildTargets: BuildOptions[] = [
7171
{
7272
format: 'esm',
7373
name: 'legacy-esm',
74-
target: 'esnext',
74+
target: 'es2017',
7575
minify: false,
7676
env: '',
7777
},

0 commit comments

Comments
 (0)