Skip to content

Commit 6d534d6

Browse files
committed
use size-limit library to track gzip size of the library:
devDependencies ∋ size-limit ∋ @size-limit/preset-small-lib
1 parent d5c6076 commit 6d534d6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

package.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
},
1717
"type": "module",
1818
"scripts": {
19-
"test": "echo \"Error: no test specified\" && exit 1"
19+
"test": "echo \"Error: no test specified\" && exit 1",
20+
"test:size": "size-limit"
2021
},
2122
"keywords": [
2223
"Van",
@@ -35,9 +36,11 @@
3536
"author": "Tao Xin",
3637
"license": "MIT",
3738
"devDependencies": {
39+
"@size-limit/preset-small-lib": "^9.0.0",
3840
"all-contributors-cli": "^6.26.1",
3941
"esbuild": "^0.17.12",
4042
"node-jq": "^2.3.5",
43+
"size-limit": "^9.0.0",
4144
"terser": "^5.22.0",
4245
"typescript": "^5.1.6"
4346
},
@@ -49,5 +52,14 @@
4952
"url": "https://github.com/vanjs-org/van/issues",
5053
"email": "bugs@vanjs.org"
5154
},
52-
"homepage": "https://vanjs.org"
55+
"homepage": "https://vanjs.org",
56+
"size-limit": [
57+
{
58+
"name": "Van",
59+
"import": {
60+
"src/van.js": "van"
61+
},
62+
"limit": "1009 B"
63+
}
64+
]
5365
}

0 commit comments

Comments
 (0)