Skip to content
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

chore(dependency): Bump date-fns and tree-shake debug logging #6509

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

VIKTORVAV99
Copy link
Member

Issue

date-fns is outdated and we are adding ~10kb to our bundle for a console log statement.

Description

Updates date-fns that cuts some of the bundle size and tree-shake another ~10kb by wrapping the console logging with a import.meta.env.DEV clause so it can be tree-shaked in production builds.

Preview

Before:

dist/assets/MapWrapper-0333f9ce.js       810.19 kB │ gzip: 222.47 kB │ map: 1,887.25 kB

After package bump:

dist/assets/MapWrapper-09ee6264.js       808.74 kB │ gzip: 222.08 kB │ map: 1,890.27 kB

After tree-shaking and package bump:

dist/assets/MapWrapper-f8e675e1.js       798.92 kB │ gzip: 218.79 kB │ map: 1,841.40 kB

Double check

  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

@github-actions github-actions bot added frontend 🎨 dependencies Pull requests that update a dependency file labels Feb 24, 2024
@VIKTORVAV99 VIKTORVAV99 requested review from a team and silkeholmebonnen and removed request for a team February 24, 2024 15:38
Copy link
Contributor

@silkeholmebonnen silkeholmebonnen left a comment

Choose a reason for hiding this comment

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

LGTM

@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) February 27, 2024 17:07
@VIKTORVAV99 VIKTORVAV99 merged commit 8fff88c into master Feb 27, 2024
21 checks passed
@VIKTORVAV99 VIKTORVAV99 deleted the vik/update_date-fns branch February 27, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file frontend 🎨 performance 🏎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants