Skip to content

Commit 0986b92

Browse files
Fix Firestore Console build (#3802)
1 parent 3a6e5ff commit 0986b92

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/firestore/index.console.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
// TODO(mrschmidt): Once imported into Google3, fix
19-
// third_party/javascript/firebase/src/packages/firestore/tools/console.build.js
20-
2118
export { Firestore, FirestoreDatabase } from './src/api/database';
2219
export {
2320
CollectionReference,

packages/firestore/tools/console.build.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2019 Google Inc.
3+
* Copyright 2019 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -22,17 +22,23 @@
2222
const rollup = require('rollup');
2323
const typescriptPlugin = require('rollup-plugin-typescript2');
2424
const typescript = require('typescript');
25+
const json = require('rollup-plugin-json');
26+
const alias = require('@rollup/plugin-alias');
2527
const resolve = require('rollup-plugin-node-resolve');
2628
const { uglify } = require('rollup-plugin-uglify');
2729
const fs = require('fs');
2830
const util = require('util');
2931
const fs_writeFile = util.promisify(fs.writeFile);
3032

33+
const rollupUtil = require('../rollup.shared');
34+
3135
const plugins = [
36+
alias(rollupUtil.generateAliasConfig('browser')),
3237
resolve(),
3338
typescriptPlugin({
3439
typescript
3540
}),
41+
json(),
3642
uglify({
3743
output: {
3844
ascii_only: true // escape unicode chars

0 commit comments

Comments
 (0)