Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Enable tree-shaking in libraries#92

Merged
adriencaccia merged 1 commit intomainfrom
chore/tree-shaking-libraries
Mar 8, 2022
Merged

Enable tree-shaking in libraries#92
adriencaccia merged 1 commit intomainfrom
chore/tree-shaking-libraries

Conversation

@adriencaccia
Copy link
Member

This PR enables libraries tree-shaking to remove useless code from handlers.

Example for a single lambda createAuthChallenge

Before, 8.68MB:
screenshot_2022-03-08-14:14:57
After, 287KB:
screenshot_2022-03-08-14:15:05

Example for a whole authentication package

Before:
image
After:
image

Copy link
Member

@fargito fargito left a comment

Choose a reason for hiding this comment

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

This is great!

@adriencaccia adriencaccia merged commit 57e66bc into main Mar 8, 2022
@adriencaccia adriencaccia deleted the chore/tree-shaking-libraries branch March 8, 2022 14:19
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.

2 participants