File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,12 @@ module.exports = babel => {
103103 }
104104
105105 // 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+ )
112112
113113 // Creates a function call to output the message to the error code page on the website
114114 const prodMessage = t . callExpression (
Original file line number Diff line number Diff line change 55 * during build.
66 * @param {number } code
77 */
8- function formatProdErrorMessage ( code : number ) {
8+ export function formatProdErrorMessage ( code : number ) {
99 return (
1010 `Minified Redux error #${ code } ; visit https://redux.js.org/Errors?code=${ code } for the full message or ` +
1111 'use the non-minified dev environment for full errors. '
1212 )
1313}
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'
22
33describe ( 'formatProdErrorMessage' , ( ) => {
44 it ( 'returns message with expected code references' , ( ) => {
You can’t perform that action at this time.
0 commit comments