Skip to content

Commit 98b6f31

Browse files
author
joshua-burbidge
committed
replace bundlesize with size-limit to remove iltorb
1 parent 104b18e commit 98b6f31

File tree

3 files changed

+289
-364
lines changed

3 files changed

+289
-364
lines changed

package-scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
),
1717
size: {
1818
description: "check the size of the bundle",
19-
script: "bundlesize",
19+
script: "size-limit",
2020
},
2121
},
2222
build: {

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"babel-core": "^7.0.0-bridge.0",
5454
"babel-eslint": "^10.1.0",
5555
"babel-jest": "^29.7.0",
56-
"bundlesize": "^0.18.2",
56+
"@size-limit/preset-small-lib": "^11.1.6",
57+
"size-limit": "^11.1.6",
5758
"doctoc": "^2.2.1",
5859
"dtslint": "^4.2.1",
5960
"eslint": "^9.27.0",
@@ -100,18 +101,18 @@
100101
"/typescript/"
101102
]
102103
},
103-
"bundlesize": [
104+
"size-limit": [
104105
{
105106
"path": "dist/react-final-form.umd.min.js",
106-
"threshold": "2kB"
107+
"limit": "4kB"
107108
},
108109
{
109110
"path": "dist/react-final-form.es.js",
110-
"threshold": "3kB"
111+
"limit": "4kB"
111112
},
112113
{
113114
"path": "dist/react-final-form.cjs.js",
114-
"threshold": "3kB"
115+
"limit": "4kB"
115116
}
116117
],
117118
"collective": {

0 commit comments

Comments
 (0)