Skip to content

Commit 20c445e

Browse files
authored
Merge e975964 into 3a18640
2 parents 3a18640 + e975964 commit 20c445e

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.changeset/hip-dingos-judge.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/database": patch
3+
---
4+
5+
Fix a build issue that caused SDK breakage.

packages/database/rollup.config.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ const es5Builds = [
5050
output: [{ file: pkg.main, format: 'cjs', sourcemap: true }],
5151
plugins: es5BuildPlugins,
5252
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`)),
53-
onwarn: onWarn
53+
onwarn: onWarn,
54+
treeshake: {
55+
moduleSideEffects: false
56+
}
5457
},
5558
/**
5659
* Browser Builds
@@ -60,7 +63,10 @@ const es5Builds = [
6063
output: [{ file: pkg.module, format: 'es', sourcemap: true }],
6164
plugins: es5BuildPlugins,
6265
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`)),
63-
onwarn: onWarn
66+
onwarn: onWarn,
67+
treeshake: {
68+
moduleSideEffects: false
69+
}
6470
}
6571
];
6672

@@ -88,7 +94,10 @@ const es2017Builds = [
8894
output: [{ file: pkg.esm2017, format: 'es', sourcemap: true }],
8995
plugins: es2017BuildPlugins,
9096
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`)),
91-
onwarn: onWarn
97+
onwarn: onWarn,
98+
treeshake: {
99+
moduleSideEffects: false
100+
}
92101
}
93102
];
94103

0 commit comments

Comments
 (0)