Skip to content

Commit 1b4524a

Browse files
Fix Node memory build
1 parent 4da9650 commit 1b4524a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/firestore/rollup.config.node.memory.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ export default [
2828
format: 'es',
2929
sourcemap: true
3030
},
31-
plugins: util.es2017Plugins('node'),
31+
plugins: [
32+
...util.es2017Plugins('node'),
33+
// Needed as we also use the *.proto files
34+
copy({
35+
assets: ['./src/protos']
36+
}),
37+
replace({
38+
'process.env.FIRESTORE_PROTO_ROOT': JSON.stringify('src/protos')
39+
})
40+
],
3241
external: util.resolveNodeExterns
3342
},
3443
{

0 commit comments

Comments
 (0)