Skip to content

Commit

Permalink
increase bundle size limit and ignore type import eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jschuler committed Jun 24, 2021
1 parent 549d559 commit f8381f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -d "$ARTIFACT_DIR" ]; then
cp public/dist/report.html "${ARTIFACT_DIR}"
fi

MAX_BYTES=3145728 # ~3 MiB
MAX_BYTES=3250586 # ~3.1 MiB
VENDORS_MAIN_BYTES=$(du -b `find public/dist -type f -name 'vendors~main-chunk*js'` | cut -f1)
DISPLAY_VALUE=$(awk "BEGIN {printf \"%.2f\n\", $VENDORS_MAIN_BYTES/1024/1024}")
MAX_DISPLAY_VALUE=$(awk "BEGIN {printf \"%.2f\n\", $MAX_BYTES/1024/1024}")
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"@patternfly/react-tokens": "4.11.12",
"@patternfly/react-topology": "4.8.72",
"@patternfly/react-virtualized-extension": "4.8.23",
"@patternfly/quickstarts": "1.0.0-rc.20",
"@patternfly/quickstarts": "1.0.0-rc.21",
"abort-controller": "3.0.0",
"ajv": "^6.12.3",
"apollo-cache-inmemory": "^1.6.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import i18next, { TFunction } from 'i18next';
// eslint-disable-next-line import/no-unresolved
import { QuickStartContextValues } from '@patternfly/quickstarts';
import { Dropdown } from '../utils';
import {
Expand Down
8 changes: 4 additions & 4 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1782,10 +1782,10 @@
resolved "https://registry.yarnpkg.com/@patternfly/patternfly/-/patternfly-4.87.3.tgz#eb2e9b22aa8f6f106580e7451bf204a06cb9949e"
integrity sha512-hDNMPa7B1zKD8LWFZO4SS5hC/N+yvuci2sAn8HJd+EIbAvbMAUkRsyZ0/XO3BG3RVtpSlgq7q8x1pAHC/FTFuA==

"@patternfly/[email protected].20":
version "1.0.0-rc.20"
resolved "https://registry.yarnpkg.com/@patternfly/quickstarts/-/quickstarts-1.0.0-rc.20.tgz#fd31e8e5fd57e9847d122701aaccc0df6e752ddb"
integrity sha512-55EbA0xEGCTjF2Bl06zNGnkXVaRYvC2+Jwd58IYxqMKdLSsvkRjtkczh9iYnKZiG+jEOqlJr4/nWber5p8PrSw==
"@patternfly/[email protected].21":
version "1.0.0-rc.21"
resolved "https://registry.yarnpkg.com/@patternfly/quickstarts/-/quickstarts-1.0.0-rc.21.tgz#4bcf3205da51264ba2154b742448c9629c7eb6bc"
integrity sha512-8sD1m+IJRntJnSQJkIawtlbHOMfiY+iGTfcTrkzY2m5rHdZEv9rtELzI1SMuksqZbbPGZTjzOHpQ7R5fwNShaQ==
dependencies:
"@patternfly/patternfly" "^4.90.5"
"@patternfly/react-catalog-view-extension" "^4.10.13"
Expand Down

0 comments on commit f8381f9

Please sign in to comment.