Skip to content

Commit 8209722

Browse files
committed
fix: remove formatjs from build and remove unused util
1 parent 92a17d5 commit 8209722

File tree

7 files changed

+3
-147
lines changed

7 files changed

+3
-147
lines changed

.storybook/config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { configure } from '@storybook/react';
2-
import '@formatjs/intl-relativetimeformat/polyfill';
3-
import '@formatjs/intl-relativetimeformat/locale-data/en';
41
import React from 'react';
2+
import { configure } from '@storybook/react';
53
import { addDecorator } from '@storybook/react';
64
import { withKnobs } from '@storybook/addon-knobs';
75
import StoryRouter from 'storybook-router';

app/i18n.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
* script `extract-intl`, and must use CommonJS module syntax
88
* You CANNOT use import/export in this file.
99
*/
10-
//eslint-disable-line
11-
import '@formatjs/intl-relativetimeformat/polyfill';
12-
import '@formatjs/intl-relativetimeformat/locale-data/en';
1310

1411
const enTranslationMessages = require('./translations/en.json');
1512

app/translations/en.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/utils/getIntl.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/utils/tests/getIntl.test.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"pre-commit": "lint:staged",
7979
"dependencies": {
8080
"@babel/helper-regex": "^7.10.5",
81-
"@formatjs/intl-relativetimeformat": "^9.1.6",
8281
"@lingui/react": "^4.11.2",
8382
"@redux-devtools/extension": "^3.2.2",
8483
"@reduxjs/toolkit": "^1.8.0",

yarn.lock

Lines changed: 1 addition & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,79 +2071,6 @@
20712071
minimatch "^3.0.4"
20722072
strip-json-comments "^3.1.1"
20732073

2074-
"@formatjs/[email protected]":
2075-
version "1.9.3"
2076-
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.9.3.tgz#00892014c805935b5b1345d238246e9bf3a2de50"
2077-
integrity sha512-DBrRUL65m4SVtfq+T4Qltd8+upAzfb9K1MX0UZ0hqQ0wpBY0PSIti9XJe0ZQ/j2v/KxpwQ0Jw5NLumKVezJFQg==
2078-
dependencies:
2079-
tslib "^2.1.0"
2080-
2081-
"@formatjs/[email protected]":
2082-
version "1.9.4"
2083-
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.9.4.tgz#797ae6c407fb5a0d09023a60c86f19aca1958c5e"
2084-
integrity sha512-ePJXI7tWC9PBxQxS7jtbkCLGVmpC8MH8n9Yjmg8dsh9wXK9svu7nAbq76Oiu5Zb+5GVkLkeTVerlSvHCbNImlA==
2085-
dependencies:
2086-
tslib "^2.1.0"
2087-
2088-
"@formatjs/[email protected]":
2089-
version "1.1.1"
2090-
resolved "https://registry.yarnpkg.com/@formatjs/fast-memoize/-/fast-memoize-1.1.1.tgz#3006b58aca1e39a98aca213356b42da5d173f26b"
2091-
integrity sha512-mIqBr5uigIlx13eZTOPSEh2buDiy3BCdMYUtewICREQjbb4xarDiVWoXSnrERM7NanZ+0TAHNXSqDe6HpEFQUg==
2092-
2093-
"@formatjs/[email protected]":
2094-
version "2.0.6"
2095-
resolved "https://registry.yarnpkg.com/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.0.6.tgz#7471c2116982f07b3d9b80e4572a870f20adbaf6"
2096-
integrity sha512-dgOZ2kq3sbjjC4P0IIghXFUiGY+x9yyypBJF9YFACjw8gPq/OSPmOzdMGvjY9hl4EeeIhhsDd4LIAN/3zHG99A==
2097-
dependencies:
2098-
"@formatjs/ecma402-abstract" "1.9.3"
2099-
"@formatjs/icu-skeleton-parser" "1.2.7"
2100-
tslib "^2.1.0"
2101-
2102-
"@formatjs/[email protected]":
2103-
version "1.2.7"
2104-
resolved "https://registry.yarnpkg.com/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.2.7.tgz#a74954695c37470efdeff828799654088e567c34"
2105-
integrity sha512-xm1rJMOz4fwVfWH98VKtbTpZvyQ45plHilkCF16Nm6bAgosYC/IcMmgJisGr6uHqb5TvJRXE07+EvnkIIQjsdA==
2106-
dependencies:
2107-
"@formatjs/ecma402-abstract" "1.9.3"
2108-
tslib "^2.1.0"
2109-
2110-
"@formatjs/[email protected]":
2111-
version "5.1.5"
2112-
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-5.1.5.tgz#fb65c09493c3488e11e72b7d9512f0c1cc18b247"
2113-
integrity sha512-338DoPv8C4BqLqE7Sn5GkJbbkpL0RG8VoMP6qMJywx7bXVgOdWXiXUl3owdCPvq0bpVGGxTl+UNnF+UH8wGdLg==
2114-
dependencies:
2115-
"@formatjs/ecma402-abstract" "1.9.3"
2116-
tslib "^2.1.0"
2117-
2118-
"@formatjs/[email protected]":
2119-
version "6.2.5"
2120-
resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-6.2.5.tgz#b2534700807e3ca2c2d8180592c15751037c908a"
2121-
integrity sha512-LRGroM+uLc8dL5J8zwHhNNxWw45nnHQMphW3zEnD9AySKPbFRsrSxzV8LYA93U5mkvMSBf49RdEODpdeyDak/Q==
2122-
dependencies:
2123-
"@formatjs/ecma402-abstract" "1.9.3"
2124-
tslib "^2.1.0"
2125-
2126-
"@formatjs/intl-relativetimeformat@^9.1.6":
2127-
version "9.1.7"
2128-
resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-9.1.7.tgz#9c5481b4d4ac39de3162c836cedef52feeae8a05"
2129-
integrity sha512-uthmRnNg+agzulNxa4Em2Jbll1msbJdkb6CO8JrOg/CFHyXH9YPMaPjCxgzR2wdDeMjBjGnFhbTJZtqz5LN+Uw==
2130-
dependencies:
2131-
"@formatjs/ecma402-abstract" "1.9.4"
2132-
tslib "^2.1.0"
2133-
2134-
"@formatjs/[email protected]":
2135-
version "1.13.1"
2136-
resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-1.13.1.tgz#1d3a05f2db7d7590da855409d8c924822b03e09c"
2137-
integrity sha512-7UF0tTjdSsMc+0wA7/ROw0ibOo+l3Can6Z01JTC6alshxYvg6UufeklbvDtenXhoeXkUWmQ/HGFJaJhQuHfGGw==
2138-
dependencies:
2139-
"@formatjs/ecma402-abstract" "1.9.3"
2140-
"@formatjs/fast-memoize" "1.1.1"
2141-
"@formatjs/icu-messageformat-parser" "2.0.6"
2142-
"@formatjs/intl-displaynames" "5.1.5"
2143-
"@formatjs/intl-listformat" "6.2.5"
2144-
intl-messageformat "9.7.0"
2145-
tslib "^2.1.0"
2146-
21472074
"@glimmer/interfaces@^0.41.4":
21482075
version "0.41.4"
21492076
resolved "https://registry.yarnpkg.com/@glimmer/interfaces/-/interfaces-0.41.4.tgz#3f3e26abea8a4e1463130e9a75e94372781d154b"
@@ -3766,7 +3693,7 @@
37663693
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.11.tgz#56588b17ae8f50c53983a524fc3cc47437969d64"
37673694
integrity sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==
37683695

3769-
"@types/hoist-non-react-statics@*", "@types/hoist-non-react-statics@^3.3.0", "@types/hoist-non-react-statics@^3.3.1":
3696+
"@types/hoist-non-react-statics@*", "@types/hoist-non-react-statics@^3.3.0":
37703697
version "3.3.1"
37713698
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
37723699
integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
@@ -5675,15 +5602,6 @@ babel-plugin-react-docgen@^4.0.0:
56755602
lodash "^4.17.15"
56765603
react-docgen "^5.0.0"
56775604

5678-
5679-
version "3.0.1"
5680-
resolved "https://registry.yarnpkg.com/babel-plugin-react-intl/-/babel-plugin-react-intl-3.0.1.tgz#4abc7fff04a7bbbb7034aec0a675713f2e52181c"
5681-
integrity sha512-FqnEO+Tq7kJVUPKsSG3s5jaHi3pAC4RUR11IrscvjsfkOApLP2DtzNo6dtQ+tX+OzEzJx7cUms8aCw5BFyW5xg==
5682-
dependencies:
5683-
"@babel/runtime" "^7.0.0"
5684-
intl-messageformat-parser "^1.2.0"
5685-
mkdirp "^0.5.1"
5686-
56875605
56885606
version "1.10.0"
56895607
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.0.tgz#ff1f42ad2cc78c21f26b62266b8f564dbc862939"
@@ -11554,20 +11472,6 @@ interpret@^3.1.1:
1155411472
resolved "https://registry.yarnpkg.com/interpret/-/interpret-3.1.1.tgz#5be0ceed67ca79c6c4bc5cf0d7ee843dcea110c4"
1155511473
integrity sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==
1155611474

11557-
intl-messageformat-parser@^1.2.0:
11558-
version "1.8.1"
11559-
resolved "https://registry.yarnpkg.com/intl-messageformat-parser/-/intl-messageformat-parser-1.8.1.tgz#0eb14c5618333be4c95c409457b66c8c33ddcc01"
11560-
integrity sha512-IMSCKVf0USrM/959vj3xac7s8f87sc+80Y/ipBzdKy4ifBv5Gsj2tZ41EAaURVg01QU71fYr77uA8Meh6kELbg==
11561-
11562-
11563-
version "9.7.0"
11564-
resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-9.7.0.tgz#a1903f71a9c828e4e3204b5a5b7f098897714726"
11565-
integrity sha512-8oiPpjantFesqixf3Fi/j3i35wPH+iWNciSm1IGb2q74MFwotsz0lYkzyQg/62ni6j+XWlmmImKNYo5tKn6TKw==
11566-
dependencies:
11567-
"@formatjs/fast-memoize" "1.1.1"
11568-
"@formatjs/icu-messageformat-parser" "2.0.6"
11569-
tslib "^2.1.0"
11570-
1157111475
1157211476
version "1.2.5"
1157311477
resolved "https://registry.yarnpkg.com/intl/-/intl-1.2.5.tgz#82244a2190c4e419f8371f5aa34daa3420e2abde"
@@ -16934,21 +16838,6 @@ react-inspector@^4.0.0:
1693416838
is-dom "^1.0.9"
1693516839
prop-types "^15.6.1"
1693616840

16937-
16938-
version "5.20.3"
16939-
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-5.20.3.tgz#03a5220cec7f5108ab99b5eae5b19f9c55b5f4d0"
16940-
integrity sha512-IFMAWZ5S3abQG7g9+ZVwyxbwDShk6R+JH5RoObfxBHYnvf6XwhrXIgGQ7zGgtJcqEEsVNPWe3CVvGhiVldsqpQ==
16941-
dependencies:
16942-
"@formatjs/ecma402-abstract" "1.9.3"
16943-
"@formatjs/icu-messageformat-parser" "2.0.6"
16944-
"@formatjs/intl" "1.13.1"
16945-
"@formatjs/intl-displaynames" "5.1.5"
16946-
"@formatjs/intl-listformat" "6.2.5"
16947-
"@types/hoist-non-react-statics" "^3.3.1"
16948-
hoist-non-react-statics "^3.3.2"
16949-
intl-messageformat "9.7.0"
16950-
tslib "^2.1.0"
16951-
1695216841
react-is@^16.12.0, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.6:
1695316842
version "16.13.1"
1695416843
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"

0 commit comments

Comments
 (0)