Skip to content

Commit

Permalink
size-limit tweaks (#10876)
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed May 15, 2023
1 parent 99e966e commit 032251f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2

jobs:
Filesize:
docker:
- image: cimg/node:20.1.0
steps:
- checkout
- run: npm version
- run: npm ci
- run: npm run bundlesize
# Filesize:
# docker:
# - image: cimg/node:20.1.0
# steps:
# - checkout
# - run: npm version
# - run: npm ci
# - run: npm run bundlesize

Lint:
docker:
Expand Down Expand Up @@ -41,6 +41,6 @@ workflows:
version: 2
Build and Test:
jobs:
- Filesize
# - Filesize
- Tests
- Lint
6 changes: 3 additions & 3 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const checks = [
{
path: "dist/apollo-client.min.cjs",
limit: "36.64kb"
limit: "36.68kb"
},
{
path: "dist/main.cjs",
Expand All @@ -10,15 +10,15 @@ const checks = [
{
path: "dist/index.js",
import: "{ ApolloClient, InMemoryCache, HttpLink }",
limit: "34.99kb"
limit: "35.02kb"
},
...[
"ApolloProvider",
"useQuery",
"useLazyQuery",
"useMutation",
"useSubscription",
//"useSuspenseQuery_experimental",
"useSuspenseQuery_experimental",
"useFragment_experimental"
].map((name) => ({ path: "dist/react/index.js", import: `{ ${name} }` })),
].map((config) => ({
Expand Down

0 comments on commit 032251f

Please sign in to comment.