Skip to content

Commit

Permalink
Minify CDN builds (#6525)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Aug 12, 2022
1 parent a5d9e10 commit 2b2079d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/firebase/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { resolve } from 'path';
import resolveModule from '@rollup/plugin-node-resolve';
import rollupTypescriptPlugin from 'rollup-plugin-typescript2';
import sourcemaps from 'rollup-plugin-sourcemaps';
import { terser } from 'rollup-plugin-terser';
import typescript from 'typescript';

const external = Object.keys(pkg.dependencies || {});
Expand Down Expand Up @@ -124,7 +125,13 @@ const cdnBuilds = [
sourcemap: true,
format: 'es'
},
plugins: [...plugins, typescriptPluginCDN],
plugins: [
...plugins,
typescriptPluginCDN,
terser({
format: { comments: false }
})
],
external: ['@firebase/app']
};
})
Expand Down

0 comments on commit 2b2079d

Please sign in to comment.