File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ module.exports = function (config) {
5858 directories : [ './node_modules' ] ,
5959 alias : {
6060 '@firebase/messaging/sw' :
61- 'node_modules/@firebase/messaging/dist/index.sw.esm2017.js'
61+ 'node_modules/@firebase/messaging/dist/index.sw.esm2017.js' ,
62+ 'idb' :
63+ 'node_modules/idb/build/index.js'
6264 }
6365 } ,
6466 transforms : [
@@ -77,7 +79,14 @@ module.exports = function (config) {
7779 ]
7880 } ,
7981 compilerOptions : {
80- allowJs : true
82+ allowJs : true ,
83+ "module" : "commonjs" ,
84+ "moduleResolution" : "node" ,
85+ "resolveJsonModule" : true ,
86+ "esModuleInterop" : true ,
87+ "sourceMap" : true ,
88+ "target" : "es5" ,
89+ "importHelpers" : true ,
8190 }
8291 } ,
8392 plugins : [
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
2323 logEvent
2424} from 'firebase/analytics' ;
2525import { initializeAppCheck , CustomProvider } from 'firebase/app-check' ;
26- import { getFunctions , httpsCallable } from 'firebase/functions' ;
26+ import { getFunctions , httpsCallable , httpsCallableFromURL } from 'firebase/functions' ;
2727import {
2828 getStorage ,
2929 ref ,
@@ -133,7 +133,7 @@ async function callFunctions(app) {
133133 throw e ;
134134 }
135135 }
136- callTest = httpsCallableByUrl (
136+ callTest = httpsCallableFromURL (
137137 functions ,
138138 `https://us-central-${ app . options . projectId } .cloudfunctions.net/callTest`
139139 ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ module.exports = [
5757 } ,
5858 devtool : 'source-map' ,
5959 devServer : {
60- contentBase : './build'
60+ static : './build'
6161 }
6262 } ,
6363 {
@@ -96,7 +96,7 @@ module.exports = [
9696 } ,
9797 devtool : 'source-map' ,
9898 devServer : {
99- contentBase : './build'
99+ static : './build'
100100 }
101101 }
102102] ;
You can’t perform that action at this time.
0 commit comments