-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.size-limit.ts
35 lines (34 loc) · 848 Bytes
/
.size-limit.ts
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
import type { SizeLimitConfig } from "size-limit";
export default [
{
path: "dist/index.js",
name: "required-react-context",
},
{
path: "dist/index.cjs",
name: "required-react-context (CJS)",
},
{
path: "dist/canary.js",
name: "required-react-context/canary",
},
{
path: "dist/canary.cjs",
name: "required-react-context/canary (CJS)",
},
{
path: "dist/index.js",
import: "{ createRequiredContext }",
name: "import { createRequiredContext } from 'required-react-context'",
},
{
path: "dist/index.js",
import: "{ createOptionalContext }",
name: "import { createOptionalContext } from 'required-react-context'",
},
{
path: "dist/canary.cjs",
import: "{ use }",
name: "import { use } from 'required-react-context/canary'",
},
] satisfies SizeLimitConfig;