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

Unexpected behavior in preset-app #143

Open
nikolay-govorov opened this issue Oct 3, 2019 · 2 comments
Open

Unexpected behavior in preset-app #143

nikolay-govorov opened this issue Oct 3, 2019 · 2 comments

Comments

@nikolay-govorov
Copy link

Hey. Thank you for your project.

I use a size-limit for the application. It weighs in at about 80KB.

The problem is that runs on a laptop and CI, give a difference of almost 2 times the time.

In laptop:

$ size-limit
  
  Time limit:   2 s
  Size:         46.43 KB
  Loading time: 929 ms   on slow 3G
  Running time: 830 ms   on Snapdragon 410
  Total time:   1.8 s
  
✨  Done in 35.67s.

In CI:

$ size-limit
  
  Total time limit has exceeded
  Time limit:   2 s
  Size:         46.38 KB
  Loading time: 928 ms   on slow 3G
  Running time: 2.3 s    on Snapdragon 410
  Total time:   3.2 s

My size-limit config:

"size-limit": [
  {
    "path": "dist/public/*.js",
    "limit": "2s"
  }
],

What do you think this may be due to?

@ai
Copy link
Owner

ai commented Oct 4, 2019

Can you show node_modules/.cache/size-limit/cache.json for laptop and CI (just print file after size-limit call in npm test)?

It will show throttling.

@ai
Copy link
Owner

ai commented Oct 4, 2019

Here is a killer feature, which will fix this problem mbalabash/estimo#5

But we can try to fix current logic too.

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

No branches or pull requests

2 participants