Skip to content

Commit 3787f44

Browse files
Minified Console build
1 parent 65b9d42 commit 3787f44

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/firestore/tools/console.build.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ const esm5OutputFile = 'dist/standalone.js';
3434

3535
const es2017InputOptions = {
3636
input: 'index.console.ts',
37-
// If I set mangled to true the build breaks, but all other build pipelines
38-
// use the same settings
3937
plugins: rollupUtil.es2017Plugins('browser', /* mangled= */ true),
4038
external: rollupUtil.resolveBrowserExterns,
4139
treeshake: {
@@ -77,16 +75,16 @@ exports = eval(`;
7775
const POSTFIX = ` + '${EXPORTNAME};');`;
7876

7977
async function build() {
80-
// create an ES2017 bundle
78+
// Create an ES2017 bundle
8179
const es2017Bundle = await rollup.rollup(es2017InputOptions);
8280
await es2017Bundle.write(es2017OutputOptions);
8381

82+
// Transpile down to ES5
8483
const es5Bundle = await rollup.rollup(es2017toEs5InputOptions);
8584
const {
8685
output: [{ code }]
8786
} = await es5Bundle.generate(es2017toEs5OutputOptions);
8887

89-
// The output file is HUGE and uses classes still
9088
const output = `${PREFIX}${JSON.stringify(String(code))}${POSTFIX}`;
9189
await fs_writeFile(es2017toEs5OutputOptions.file, output, 'utf-8');
9290
}

0 commit comments

Comments
 (0)