-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
.size-limit.cjs
49 lines (48 loc) · 1.12 KB
/
.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
43
44
45
46
47
48
49
const checks = [
{
path: "dist/apollo-client.min.cjs",
limit: "37460"
},
{
path: "dist/main.cjs",
import: "{ ApolloClient, InMemoryCache, HttpLink }"
},
{
path: "dist/index.js",
import: "{ ApolloClient, InMemoryCache, HttpLink }",
limit: "33243"
},
...[
"ApolloProvider",
"useQuery",
"useLazyQuery",
"useMutation",
"useSubscription",
"useSuspenseQuery_experimental",
"useBackgroundQuery_experimental",
"useReadQuery_experimental",
"useFragment_experimental"
].map((name) => ({ path: "dist/react/index.js", import: `{ ${name} }` })),
].map((config) => ({
...config,
name: config.name || config.import ? `import ${config.import} from "${config.path}"` : config.path,
ignore: [
...(config.ignore || []),
"react",
"react-dom",
"@graphql-typed-document-node/core",
"@wry/context",
"@wry/equality",
"@wry/trie",
"graphql-tag",
"hoist-non-react-statics",
"optimism",
"prop-types",
"response-iterator",
"symbol-observable",
"ts-invariant",
"tslib",
"zen-observable-ts"
],
}));
module.exports = checks;