Skip to content

Commit

Permalink
Decrease bundle size limit by 36 percent
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Nov 24, 2022
1 parent 1638921 commit 77a3832
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-papayas-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@farfetched/core': minor
---

Decrease bundle size by 36 percent
7 changes: 1 addition & 6 deletions packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ export { sessionStorageCache } from './src/cache/adapters/session_storage';
export { voidCache } from './src/cache/adapters/void';

export { declareParams, type ParamsDeclaration } from './src/misc/params';
export {
type TwoArgsDynamicallySourcedField,
type SourcedField,
normalizeSourced,
reduceTwoArgs,
} from './src/misc/sourced';
export { type SourcedField, normalizeSourced } from './src/misc/sourced';
export { type ValidationResult, type Validator } from './src/validation/type';

export { type Json, type JsonObject } from './src/fetch/json';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"size": {
"executor": "./tools/executors/size-limit:size-limit",
"options": {
"limit": "22 kB",
"limit": "14 kB",
"outputPath": "dist/packages/core"
},
"dependsOn": [
Expand Down

0 comments on commit 77a3832

Please sign in to comment.