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

Audit polyfill size #276

Closed
jamesnw opened this issue Nov 21, 2024 · 1 comment · Fixed by #277
Closed

Audit polyfill size #276

jamesnw opened this issue Nov 21, 2024 · 1 comment · Fixed by #277
Labels
enhancement New feature or request

Comments

@jamesnw
Copy link
Contributor

jamesnw commented Nov 21, 2024

It would be useful to audit the polyfill dist size, with a tool like rollup-plugin-bundle-stats. The majority of the code is from csstree, and we may be able to reduce the size by changing how we import things.

@jamesnw jamesnw added the enhancement New feature or request label Nov 21, 2024
@jamesnw
Copy link
Contributor Author

jamesnw commented Nov 22, 2024

Current state:
image
Bundle Size: 223.72KiB

Moving from import * as csstree to more granular imports-
image
Bundle Size: 116.87KiB

We might be able to reduce by another 41kb by removing source-map-js- I suspect it is not needed in the compiled bundle.

@jamesnw jamesnw linked a pull request Nov 22, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant