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

Add size limit #32

Closed
wants to merge 1 commit into from
Closed

Add size limit #32

wants to merge 1 commit into from

Conversation

flaviouk
Copy link
Sponsor

Adds size limit checks into the pipeline.

Unfortunately because of lack of support of the tool, the config had to be written in .cjs and it's not able to parse pure esm yet (ai/size-limit#227)

Still I think this adds value, but let me know what you think

pair: '301 B',
prng: '6.69 kb',
promise: '1.33 kb',
queue: '0 kb',
Copy link
Sponsor Author

Choose a reason for hiding this comment

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

This one also didn't work for some reason 🤔

@dmonad
Copy link
Owner

dmonad commented May 4, 2022

This tool is super cool! Thank you for pointing this out. It really makes sense to measure the size of "bundles" - like web apps. However, for lib0, I'm not so sure. lib0 exports pure module exports. A module bundler should be able to strip away everything that is not needed.

I'm super critical about everything that goes into lib0, as it should be as minimalistic as possible.

Feel free to discuss further, however, at this time, I'm not super convinced that I want to maintain this in lib0.

@dmonad dmonad closed this May 4, 2022
@flaviouk flaviouk deleted the add-size-limit branch May 4, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants