Skip to content

Remove debugAsserts from Node builds #3405

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
Jul 20, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

This uses the existing removeAsserts transformer to remove debugAsserts from the Node builds (main, lite and exp). This seems like a worthwhile step as we don't need to treeshake code that can be removed. We already strip these asserts in the browser and RN builds.

@changeset-bot
Copy link

changeset-bot bot commented Jul 14, 2020

💥 No Changeset

Latest commit: 0f481dc

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, 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

@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt/removedebugasserts branch from bf7e1d5 to 3aa81f2 Compare July 14, 2020 19:17
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 14, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (82e793f) Head (1bf0b7a) Diff
    main 495 kB 470 kB -25.6 kB (-5.2%)
  • @firebase/firestore/exp

    Type Base (82e793f) Head (1bf0b7a) Diff
    main 535 kB 509 kB -25.8 kB (-4.8%)
  • @firebase/firestore/lite

    Type Base (82e793f) Head (1bf0b7a) Diff
    main 521 kB 495 kB -25.8 kB (-4.9%)
  • @firebase/firestore/memory

    Type Base (82e793f) Head (1bf0b7a) Diff
    main 364 kB 344 kB -20.2 kB (-5.6%)

Test Logs

@schmidt-sebastian schmidt-sebastian merged commit 4aa169b into master Jul 20, 2020
@firebase firebase locked and limited conversation to collaborators Aug 20, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/removedebugasserts branch November 9, 2020 22:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants