File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 4949 "@babel/plugin-proposal-object-rest-spread" : " ^7.18.0" ,
5050 "@babel/plugin-proposal-optional-chaining" : " ^7.17.12" ,
5151 "@babel/plugin-transform-object-assign" : " ^7.16.7" ,
52+ "@babel/plugin-transform-template-literals" : " ^7.18.9" ,
5253 "@babel/polyfill" : " ^7.12.1" ,
5354 "@babel/preset-env" : " ^7.18.2" ,
5455 "@babel/preset-react" : " ^7.17.12" ,
Original file line number Diff line number Diff line change @@ -127,6 +127,21 @@ const clientConfig = ({ isDevClientWrapper }) => ({
127127 resolve : {
128128 fullySpecified : false ,
129129 } ,
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+ ] ,
130145 } ,
131146 // typescript config
132147 {
You can’t perform that action at this time.
0 commit comments