File tree 3 files changed +8
-10
lines changed 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,12 @@ module.exports = babel => {
103
103
}
104
104
105
105
// Import the error message function
106
- const formatProdErrorMessageIdentifier =
107
- helperModuleImports . addDefault (
108
- path ,
109
- 'src/utils/formatProdErrorMessage' ,
110
- { nameHint : 'formatProdErrorMessage' }
111
- )
106
+ const formatProdErrorMessageIdentifier = helperModuleImports . addNamed (
107
+ path ,
108
+ 'formatProdErrorMessage' ,
109
+ 'src/utils/formatProdErrorMessage' ,
110
+ { nameHint : 'formatProdErrorMessage' }
111
+ )
112
112
113
113
// Creates a function call to output the message to the error code page on the website
114
114
const prodMessage = t . callExpression (
Original file line number Diff line number Diff line change 5
5
* during build.
6
6
* @param {number } code
7
7
*/
8
- function formatProdErrorMessage ( code : number ) {
8
+ export function formatProdErrorMessage ( code : number ) {
9
9
return (
10
10
`Minified Redux error #${ code } ; visit https://redux.js.org/Errors?code=${ code } for the full message or ` +
11
11
'use the non-minified dev environment for full errors. '
12
12
)
13
13
}
14
-
15
- export default formatProdErrorMessage
Original file line number Diff line number Diff line change 1
- import formatProdErrorMessage from '@internal/utils/formatProdErrorMessage'
1
+ import { formatProdErrorMessage } from '@internal/utils/formatProdErrorMessage'
2
2
3
3
describe ( 'formatProdErrorMessage' , ( ) => {
4
4
it ( 'returns message with expected code references' , ( ) => {
You can’t perform that action at this time.
0 commit comments