File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ module.exports = function (config) {
58
58
directories : [ './node_modules' ] ,
59
59
alias : {
60
60
'@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' : 'node_modules/idb/build/index.js'
62
63
}
63
64
} ,
64
65
transforms : [
@@ -77,7 +78,14 @@ module.exports = function (config) {
77
78
]
78
79
} ,
79
80
compilerOptions : {
80
- allowJs : true
81
+ allowJs : true ,
82
+ 'module' : 'commonjs' ,
83
+ 'moduleResolution' : 'node' ,
84
+ 'resolveJsonModule' : true ,
85
+ 'esModuleInterop' : true ,
86
+ 'sourceMap' : true ,
87
+ 'target' : 'es5' ,
88
+ 'importHelpers' : true
81
89
}
82
90
} ,
83
91
plugins : [
Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ import {
23
23
logEvent
24
24
} from 'firebase/analytics' ;
25
25
import { initializeAppCheck , CustomProvider } from 'firebase/app-check' ;
26
- import { getFunctions , httpsCallable } from 'firebase/functions' ;
26
+ import {
27
+ getFunctions ,
28
+ httpsCallable ,
29
+ httpsCallableFromURL
30
+ } from 'firebase/functions' ;
27
31
import {
28
32
getStorage ,
29
33
ref ,
@@ -133,7 +137,7 @@ async function callFunctions(app) {
133
137
throw e ;
134
138
}
135
139
}
136
- callTest = httpsCallableByUrl (
140
+ callTest = httpsCallableFromURL (
137
141
functions ,
138
142
`https://us-central-${ app . options . projectId } .cloudfunctions.net/callTest`
139
143
) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ module.exports = [
57
57
} ,
58
58
devtool : 'source-map' ,
59
59
devServer : {
60
- contentBase : './build'
60
+ static : './build'
61
61
}
62
62
} ,
63
63
{
@@ -96,7 +96,7 @@ module.exports = [
96
96
} ,
97
97
devtool : 'source-map' ,
98
98
devServer : {
99
- contentBase : './build'
99
+ static : './build'
100
100
}
101
101
}
102
102
] ;
You can’t perform that action at this time.
0 commit comments