Skip to content

Commit af14d2a

Browse files
Wes SouzaWesSouza
authored andcommitted
Add and configure size-limit dependency
1 parent ce1c9a4 commit af14d2a

File tree

2 files changed

+2319
-46
lines changed

2 files changed

+2319
-46
lines changed

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"react": ">=16"
2525
},
2626
"devDependencies": {
27+
"@size-limit/preset-small-lib": "^4.11.0",
2728
"@testing-library/react": "^11.2.7",
2829
"@types/jest": "^26.0.23",
2930
"@types/react": "^17.0.7",
@@ -35,6 +36,7 @@
3536
"prettier": "^2.3.0",
3637
"react": "^17.0.2",
3738
"react-dom": "^17.0.2",
39+
"size-limit": "^4.11.0",
3840
"tsdx": "^0.14.1",
3941
"tslib": "^2.2.0",
4042
"typescript": "^4.2.4"
@@ -56,5 +58,15 @@
5658
},
5759
"resolutions": {
5860
"node-notifier": "^9.0.1"
59-
}
61+
},
62+
"size-limit": [
63+
{
64+
"path": "dist/immer-state.cjs.production.min.js",
65+
"limit": "10 KB"
66+
},
67+
{
68+
"path": "dist/immer-state.esm.js",
69+
"limit": "10 KB"
70+
}
71+
]
6072
}

0 commit comments

Comments
 (0)