-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.size-limit.cjs
36 lines (36 loc) · 896 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
/**
* @link https://github.com/ai/size-limit/
* @type {{name: string, path: string[], limit: string, import?: string, webpack?: boolean}[]}
*/
module.exports = [
{
name: 'Only { isPlainObject } (ESM)',
path: ['dist/index.mjs'],
import: '{ isPlainObject }',
limit: '81B',
},
{
name: 'Only { assertPlainObject } (ESM)',
path: ['dist/index.mjs'],
import: '{ assertPlainObject }',
limit: '135B',
},
{
name: 'Only { isStaticBuiltInClass } (ESM)',
path: ['dist/index.mjs'],
import: '{ isStaticBuiltInClass }',
limit: '38B',
},
{
name: 'Import { assertPlainObject, isPlainObject } (ESM)',
path: ['dist/index.mjs'],
import: '{ assertPlainObject, isPlainObject }',
limit: '143B',
},
{
name: 'Require isPlainObject from CJS',
import: '{ isPlainObject }',
path: ['dist/index.cjs'],
limit: '158KB',
},
];