Skip to content

Commit 63bdd9b

Browse files
authored
pr (#4)
* pr * fix: size limit * fix: size limit * test: accepted range
1 parent 6696c57 commit 63bdd9b

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

Diff for: .gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
*.log
2-
.DS_Store
31
node_modules
42
dist
53
.env

Diff for: cmd/build.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ await build({
5353
"size-limit": [
5454
{
5555
path: "esm/mod.js",
56-
limit: "2 KB",
56+
limit: "15 KB",
5757
},
5858
{
5959
path: "script/mod.js",
60-
limit: "52 KB",
60+
limit: "15 KB",
6161
},
6262
],
6363
},

Diff for: examples/.pnpm-debug.log

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"0 debug pnpm:scope": {
3+
"selected": 1
4+
},
5+
"1 error pnpm": {
6+
"code": "ENOENT",
7+
"err": {
8+
"name": "pnpm",
9+
"message": "not found: create",
10+
"code": "ENOENT",
11+
"stack": "pnpm: not found: create\n at getNotFoundError (/Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:35893:51)\n at Function.whichSync [as sync] (/Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:35970:13)\n at getCommandAbsolutePathSync (/Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:37535:44)\n at default_1 (/Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:37544:32)\n at Object.handler [as dlx] (/Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:169998:33)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async /Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:175391:21\n at async run (/Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:175365:34)\n at async /Users/andreasthomas/.nvm/versions/node/v16.15.0/lib/node_modules/pnpm/dist/pnpx.cjs:175437:5"
12+
}
13+
}
14+
}

Diff for: src/limit.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const testcases: TestCase[] = [
7272
{
7373
rate: 1000,
7474
load: 1.5,
75-
expected: [9000, 10500],
75+
expected: [9000, 11000],
7676
},
7777
];
7878

0 commit comments

Comments
 (0)