-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.size-limit.cjs
42 lines (42 loc) · 878 Bytes
/
.size-limit.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @link https://github.com/ai/size-limit/
* @type {{name: string, path: string[], limit: string, import?: string, webpack?: boolean}[]}
*/
module.exports = [
{
name: 'Everything (ESM)',
path: ['dist/index.mjs'],
import: "*",
limit: '1900B',
},
{
name: 'Only isPlainObject (ESM)',
path: ['dist/index.mjs'],
import: "{ isPlainObject }",
limit: "108B",
},
{
name: 'Only isUuid (ESM)',
path: ['dist/index.mjs'],
import: "{ isUuid }",
limit: "180B",
},
{
name: 'Only isEan13 (ESM)',
path: ['dist/index.mjs'],
import: "{ isEan13 }",
limit: "120B",
},
{
name: 'Only assertPlainObject (ESM)',
path: ['dist/index.mjs'],
import: "{ assertPlainObject }",
limit: "489B",
},
{
name: 'Everything (CJS)',
import: "*",
path: ['dist/index.cjs'],
limit: '2600B',
},
];