mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 09:23:21 +01:00
Remove redundant polyfill @formatjs/intl-relativetimeformat (#20204)
This commit is contained in:
parent
d3c9d4a55a
commit
9441c0fb7d
@ -1,6 +1,3 @@
|
||||
// polyfills
|
||||
import '@formatjs/intl-relativetimeformat/polyfill';
|
||||
|
||||
// dev only, "react-devtools" import is skipped in prod builds
|
||||
import 'react-devtools';
|
||||
|
||||
|
@ -3,7 +3,6 @@ const fs = require('fs-extra');
|
||||
const watch = require('gulp-watch');
|
||||
const glob = require('fast-glob');
|
||||
|
||||
const locales = require('../../app/_locales/index.json');
|
||||
const { loadBuildTypesConfig } = require('../lib/build-type');
|
||||
|
||||
const { TASKS } = require('./constants');
|
||||
@ -211,23 +210,6 @@ function getCopyTargets(
|
||||
});
|
||||
}
|
||||
|
||||
const languageTags = new Set();
|
||||
for (const locale of locales) {
|
||||
const { code } = locale;
|
||||
const tag = code.split('_')[0];
|
||||
languageTags.add(tag);
|
||||
}
|
||||
|
||||
for (const tag of languageTags) {
|
||||
allCopyTargets.push({
|
||||
src: getPathInsideNodeModules(
|
||||
'@formatjs/intl-relativetimeformat',
|
||||
`dist/locale-data/${tag}.json`,
|
||||
),
|
||||
dest: `intl/${tag}/relative-time-format-data.json`,
|
||||
});
|
||||
}
|
||||
|
||||
const copyTargetsDev = [
|
||||
...allCopyTargets,
|
||||
{
|
||||
|
@ -484,19 +484,6 @@
|
||||
"@ethersproject/providers>@ethersproject/base64": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat": {
|
||||
"globals": {
|
||||
"Intl": true
|
||||
},
|
||||
"packages": {
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": {
|
||||
"globals": {
|
||||
"Intl.getCanonicalLocales": true
|
||||
}
|
||||
},
|
||||
"@keystonehq/bc-ur-registry-eth": {
|
||||
"packages": {
|
||||
"@ethereumjs/tx>@ethereumjs/util": true,
|
||||
|
@ -484,19 +484,6 @@
|
||||
"@ethersproject/providers>@ethersproject/base64": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat": {
|
||||
"globals": {
|
||||
"Intl": true
|
||||
},
|
||||
"packages": {
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": {
|
||||
"globals": {
|
||||
"Intl.getCanonicalLocales": true
|
||||
}
|
||||
},
|
||||
"@keystonehq/bc-ur-registry-eth": {
|
||||
"packages": {
|
||||
"@ethereumjs/tx>@ethereumjs/util": true,
|
||||
|
@ -484,19 +484,6 @@
|
||||
"@ethersproject/providers>@ethersproject/base64": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat": {
|
||||
"globals": {
|
||||
"Intl": true
|
||||
},
|
||||
"packages": {
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": {
|
||||
"globals": {
|
||||
"Intl.getCanonicalLocales": true
|
||||
}
|
||||
},
|
||||
"@keystonehq/bc-ur-registry-eth": {
|
||||
"packages": {
|
||||
"@ethereumjs/tx>@ethereumjs/util": true,
|
||||
|
@ -484,19 +484,6 @@
|
||||
"@ethersproject/providers>@ethersproject/base64": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat": {
|
||||
"globals": {
|
||||
"Intl": true
|
||||
},
|
||||
"packages": {
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": {
|
||||
"globals": {
|
||||
"Intl.getCanonicalLocales": true
|
||||
}
|
||||
},
|
||||
"@keystonehq/bc-ur-registry-eth": {
|
||||
"packages": {
|
||||
"@ethereumjs/tx>@ethereumjs/util": true,
|
||||
|
@ -484,19 +484,6 @@
|
||||
"@ethersproject/providers>@ethersproject/base64": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat": {
|
||||
"globals": {
|
||||
"Intl": true
|
||||
},
|
||||
"packages": {
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": true
|
||||
}
|
||||
},
|
||||
"@formatjs/intl-relativetimeformat>@formatjs/intl-utils": {
|
||||
"globals": {
|
||||
"Intl.getCanonicalLocales": true
|
||||
}
|
||||
},
|
||||
"@keystonehq/bc-ur-registry-eth": {
|
||||
"packages": {
|
||||
"@ethereumjs/tx>@ethereumjs/util": true,
|
||||
|
@ -168,7 +168,6 @@
|
||||
"jsdom@^16.7.0": "patch:jsdom@npm%3A16.7.0#./.yarn/patches/jsdom-npm-16.7.0-216c5c4bf9.patch",
|
||||
"trim": "^0.0.3",
|
||||
"@eslint/eslintrc@^2.0.1": "patch:@eslint/eslintrc@npm%3A2.0.2#./.yarn/patches/@eslint-eslintrc-npm-2.0.2-d308674d86.patch",
|
||||
"@formatjs/intl-utils@^3.3.1": "patch:@formatjs/intl-utils@npm%3A3.3.1#./.yarn/patches/@formatjs-intl-utils-npm-3.3.1-08510c16ad.patch",
|
||||
"@fortawesome/fontawesome-free@^5.13.0": "patch:@fortawesome/fontawesome-free@npm%3A5.13.0#./.yarn/patches/@fortawesome-fontawesome-free-npm-5.13.0-f20fc0388d.patch",
|
||||
"@keystonehq/bc-ur-registry@^0.5.0-alpha.5": "patch:@keystonehq/bc-ur-registry@npm%3A0.5.0-alpha.5#./.yarn/patches/@keystonehq-bc-ur-registry-npm-0.5.0-alpha.5-b95c7992a6.patch",
|
||||
"@lavamoat/lavapack@^3.1.0": "patch:@lavamoat/lavapack@npm%3A3.1.0#./.yarn/patches/@lavamoat-lavapack-npm-3.1.0-34c65d233b.patch",
|
||||
@ -213,7 +212,6 @@
|
||||
"@ethersproject/contracts": "^5.7.0",
|
||||
"@ethersproject/hdnode": "^5.6.2",
|
||||
"@ethersproject/providers": "^5.7.2",
|
||||
"@formatjs/intl-relativetimeformat": "^5.2.6",
|
||||
"@fortawesome/fontawesome-free": "^5.13.0",
|
||||
"@keystonehq/bc-ur-registry-eth": "^0.19.1",
|
||||
"@keystonehq/metamask-airgapped-keyring": "^0.13.1",
|
||||
|
28
yarn.lock
28
yarn.lock
@ -2654,33 +2654,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@formatjs/intl-relativetimeformat@npm:^5.2.6":
|
||||
version: 5.2.6
|
||||
resolution: "@formatjs/intl-relativetimeformat@npm:5.2.6"
|
||||
dependencies:
|
||||
"@formatjs/intl-utils": ^3.3.1
|
||||
checksum: 496b198513e535593538bddc5d0d8f1d011c6b095c4f6632461e2cc1960a52eb06365c454feeddb9eac0a2ebfc659d49fa47c71f2c94e1eb321e299f54360c84
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@formatjs/intl-utils@npm:3.3.1":
|
||||
version: 3.3.1
|
||||
resolution: "@formatjs/intl-utils@npm:3.3.1"
|
||||
dependencies:
|
||||
emojis-list: ^3.0.0
|
||||
checksum: 78ca866d4d94a0557156cdeb025548fe373326b7839aed394ba69a935b7f4685d0a5de67f766e73c99b7700abd675d22bb2b50d08141fdffaa177d43d9671e92
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@formatjs/intl-utils@patch:@formatjs/intl-utils@npm%3A3.3.1#./.yarn/patches/@formatjs-intl-utils-npm-3.3.1-08510c16ad.patch::locator=metamask-crx%40workspace%3A.":
|
||||
version: 3.3.1
|
||||
resolution: "@formatjs/intl-utils@patch:@formatjs/intl-utils@npm%3A3.3.1#./.yarn/patches/@formatjs-intl-utils-npm-3.3.1-08510c16ad.patch::version=3.3.1&hash=0b1781&locator=metamask-crx%40workspace%3A."
|
||||
dependencies:
|
||||
emojis-list: ^3.0.0
|
||||
checksum: a24f9405ab93031791298a1ea574ff1a10506e98d85706fc0d0f8b7c6019202c61b0490e9cfc3c6fadb6bc71b9545544124ad639e197c1983fb474152f326de7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@fortawesome/fontawesome-free@npm:5.13.0":
|
||||
version: 5.13.0
|
||||
resolution: "@fortawesome/fontawesome-free@npm:5.13.0"
|
||||
@ -24225,7 +24198,6 @@ __metadata:
|
||||
"@ethersproject/contracts": ^5.7.0
|
||||
"@ethersproject/hdnode": ^5.6.2
|
||||
"@ethersproject/providers": ^5.7.2
|
||||
"@formatjs/intl-relativetimeformat": ^5.2.6
|
||||
"@fortawesome/fontawesome-free": ^5.13.0
|
||||
"@keystonehq/bc-ur-registry-eth": ^0.19.1
|
||||
"@keystonehq/metamask-airgapped-keyring": ^0.13.1
|
||||
|
Loading…
Reference in New Issue
Block a user