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

Fix tree-shaking when importing from 'govuk-frontend' #4957

Closed
1 task
Tracked by #3731
romaricpascal opened this issue Apr 26, 2024 · 0 comments · Fixed by #4961
Closed
1 task
Tracked by #3731

Fix tree-shaking when importing from 'govuk-frontend' #4957

romaricpascal opened this issue Apr 26, 2024 · 0 comments · Fixed by #4961
Assignees
Milestone

Comments

@romaricpascal
Copy link
Member

What

Ensure that when importing individual components from 'govuk-frontend', only the code from these components get included in the final bundle, and not the entirety of GOV.UK Frontend.

Why

This will make it easier for people to reduce the size of their JavaScript bundle by only including the code of the components they actually use.

Who needs to work on this

Developers

Who needs to review this

Developers

Done when

  • Importing individual components from 'govuk-frontend' includes only the code necessary for these components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants