Skip to content

One neat trick to fix slow builds #7036

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 1 commit into from
Feb 14, 2023
Merged

One neat trick to fix slow builds #7036

merged 1 commit into from
Feb 14, 2023

Conversation

hsubox76
Copy link
Contributor

Ensure firebase main package builds ignore all dist files even in subdirectories. This was causing very slow builds in rollup-plugin-typescript2 (30-50s per small index file). This didn't seem to be a problem in the past (perhaps a change to rpt2 or typescript introduced this), and it's not a problem for @rollup/plugin-typescript which doesn't even seem to need the exclude to know to ignore dist/ files.

This reduces build times per file from roughly 30s to about 3s.

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2023

⚠️ No Changeset found

Latest commit: 9915a04

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

@google-oss-bot
Copy link
Contributor

@hsubox76 hsubox76 marked this pull request as ready for review February 14, 2023 17:12
Copy link
Contributor

@dwyfrequency dwyfrequency left a comment

Choose a reason for hiding this comment

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

LGTM

@hsubox76 hsubox76 merged commit b5a1a60 into master Feb 14, 2023
@hsubox76 hsubox76 deleted the ch-fix-slow-builds branch February 14, 2023 18:03
NhienLam pushed a commit that referenced this pull request Feb 14, 2023
@firebase firebase locked and limited conversation to collaborators Mar 17, 2023
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