Skip to content

Commit 74182c0

Browse files
authored
Merge 4e92105 into a5d9e10
2 parents a5d9e10 + 4e92105 commit 74182c0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/firebase/rollup.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { resolve } from 'path';
2323
import resolveModule from '@rollup/plugin-node-resolve';
2424
import rollupTypescriptPlugin from 'rollup-plugin-typescript2';
2525
import sourcemaps from 'rollup-plugin-sourcemaps';
26+
import { terser } from 'rollup-plugin-terser';
2627
import typescript from 'typescript';
2728

2829
const external = Object.keys(pkg.dependencies || {});
@@ -124,7 +125,13 @@ const cdnBuilds = [
124125
sourcemap: true,
125126
format: 'es'
126127
},
127-
plugins: [...plugins, typescriptPluginCDN],
128+
plugins: [
129+
...plugins,
130+
typescriptPluginCDN,
131+
terser({
132+
format: { comments: false }
133+
})
134+
],
128135
external: ['@firebase/app']
129136
};
130137
})

0 commit comments

Comments
 (0)