File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 49
49
"@babel/plugin-proposal-object-rest-spread" : " ^7.18.0" ,
50
50
"@babel/plugin-proposal-optional-chaining" : " ^7.17.12" ,
51
51
"@babel/plugin-transform-object-assign" : " ^7.16.7" ,
52
+ "@babel/plugin-transform-template-literals" : " ^7.18.9" ,
52
53
"@babel/polyfill" : " ^7.12.1" ,
53
54
"@babel/preset-env" : " ^7.18.2" ,
54
55
"@babel/preset-react" : " ^7.17.12" ,
Original file line number Diff line number Diff line change @@ -127,6 +127,21 @@ const clientConfig = ({ isDevClientWrapper }) => ({
127
127
resolve : {
128
128
fullySpecified : false ,
129
129
} ,
130
+ use : [
131
+ {
132
+ // Fix #157 Issue with template literals in firebase module
133
+ loader : 'babel-loader' ,
134
+ options : {
135
+ compact : false ,
136
+ plugins : [
137
+ '@babel/plugin-transform-template-literals' ,
138
+ ! isProd &&
139
+ ! isDevClientWrapper &&
140
+ require . resolve ( 'react-refresh/babel' ) ,
141
+ ] . filter ( Boolean ) ,
142
+ } ,
143
+ } ,
144
+ ] ,
130
145
} ,
131
146
// typescript config
132
147
{
You can’t perform that action at this time.
0 commit comments