Skip to content

Commit 7273223

Browse files
authored
Merge 979baac into c52eb48
2 parents c52eb48 + 979baac commit 7273223

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/storage": patch
3+
---
4+
5+
Adds a browser CJS build as ./dist/index.browser.cjs.js.

packages/storage/rollup.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ const es5BuildPlugins = [
4242
const es5Builds = [
4343
{
4444
input: './index.ts',
45-
output: { file: pkg.module, format: 'es', sourcemap: true },
45+
output: [
46+
{ file: 'dist/index.browser.cjs.js', format: 'cjs', sourcemap: true },
47+
{ file: pkg.module, format: 'es', sourcemap: true }
48+
],
4649
plugins: [alias(generateAliasConfig('browser')), ...es5BuildPlugins],
4750
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`)),
4851
treeshake: {

0 commit comments

Comments
 (0)