Skip to content

Fix externals for packages/firebase builds #3729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 2, 2020
Merged

Fix externals for packages/firebase builds #3729

merged 2 commits into from
Sep 2, 2020

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Sep 2, 2020

Externals should include tslib and use startsWith pattern.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 2, 2020

Size Analysis Report

Affected Products

No changes between base commit (1bf0a3c) and head commit (25e3ba6).

Test Logs

@@ -70,7 +70,8 @@ const plugins = [
commonjs()
];

const external = Object.keys(pkg.dependencies || {});
const deps = [...Object.keys(pkg.dependencies || {}), 'tslib'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to add tslib which is a not a direct dependency of firebase/firestore/memory, etc. We are good as long as the scoped packages e.g. @firebase/firestore/memory are excluded.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@hsubox76 hsubox76 merged commit ba010ef into master Sep 2, 2020
@hsubox76 hsubox76 deleted the ch-buildfix branch September 15, 2020 16:44
@firebase firebase locked and limited conversation to collaborators Oct 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants