Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 0e38a77

Browse files
committed
feat: add polyfill for old browsers
1 parent 1952ff0 commit 0e38a77

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

.babelrc

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"useBuiltIns": "entry"
7+
}
8+
],
39
"@babel/preset-typescript",
410
"react-app"
511
],

.browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
last 10 Chrome versions

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@babel/core": "^7.12.10",
2121
"@babel/plugin-proposal-class-properties": "^7.12.1",
2222
"@babel/plugin-transform-react-jsx": "^7.12.12",
23-
"@babel/preset-env": "^7.12.10",
23+
"@babel/preset-env": "^7.12.11",
2424
"@babel/preset-react": "^7.12.10",
2525
"@babel/preset-typescript": "^7.12.7",
2626
"@commitlint/cli": "^11.0.0",
@@ -59,6 +59,7 @@
5959
"connect.io": "^3.1.3",
6060
"conventional-changelog-cli": "^2.1.1",
6161
"copy-webpack-plugin": "^6.4.0",
62+
"core-js": "3",
6263
"cross-env": "^7.0.3",
6364
"css-loader": "^5.0.1",
6465
"dotenv": "^8.2.0",
@@ -83,6 +84,7 @@
8384
"postcss-loader": "^4.1.0",
8485
"prettier": "^2.2.1",
8586
"process": "^0.11.10",
87+
"query-string": "^6.13.8",
8688
"rangy": "^1.3.0",
8789
"react": "^17.0.1",
8890
"react-clipboard.js": "^2.0.16",

yarn.lock

+21-2
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@
913913
core-js-compat "^3.6.2"
914914
semver "^5.5.0"
915915

916-
"@babel/preset-env@^7.12.10":
916+
"@babel/preset-env@^7.12.11":
917917
version "7.12.11"
918918
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.11.tgz#55d5f7981487365c93dbbc84507b1c7215e857f9"
919919
integrity sha512-j8Tb+KKIXKYlDBQyIOy4BLxzv1NUOwlHfZ74rvW+Z0Gp4/cI2IMDPBWAgWceGcE7aep9oL/0K9mlzlMGxA8yNw==
@@ -3200,7 +3200,7 @@ core-js-compat@^3.6.2, core-js-compat@^3.8.0:
32003200
browserslist "^4.16.0"
32013201
semver "7.0.0"
32023202

3203-
core-js@^3.6.1:
3203+
core-js@3, core-js@^3.6.1:
32043204
version "3.8.2"
32053205
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.8.2.tgz#0a1fd6709246da9ca8eff5bb0cbd15fba9ac7044"
32063206
integrity sha512-FfApuSRgrR6G5s58casCBd9M2k+4ikuu4wbW6pJyYU7bd9zvFc9qf7vr5xmrZOhT9nn+8uwlH1oRR9jTnFoA3A==
@@ -7106,6 +7106,15 @@ qs@~6.5.2:
71067106
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
71077107
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
71087108

7109+
query-string@^6.13.8:
7110+
version "6.13.8"
7111+
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.13.8.tgz#8cf231759c85484da3cf05a851810d8e825c1159"
7112+
integrity sha512-jxJzQI2edQPE/NPUOusNjO/ZOGqr1o2OBa/3M00fU76FsLXDVbJDv/p7ng5OdQyorKrkRz1oqfwmbe5MAMePQg==
7113+
dependencies:
7114+
decode-uri-component "^0.2.0"
7115+
split-on-first "^1.0.0"
7116+
strict-uri-encode "^2.0.0"
7117+
71097118
71107119
version "0.2.0"
71117120
resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"
@@ -8119,6 +8128,11 @@ spdy@^4.0.2:
81198128
select-hose "^2.0.0"
81208129
spdy-transport "^3.0.0"
81218130

8131+
split-on-first@^1.0.0:
8132+
version "1.1.0"
8133+
resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f"
8134+
integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==
8135+
81228136
split-string@^3.0.1, split-string@^3.0.2:
81238137
version "3.1.0"
81248138
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
@@ -8194,6 +8208,11 @@ stdout-stream@^1.4.0:
81948208
dependencies:
81958209
readable-stream "^2.0.1"
81968210

8211+
strict-uri-encode@^2.0.0:
8212+
version "2.0.0"
8213+
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
8214+
integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY=
8215+
81978216
81988217
version "0.3.1"
81998218
resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da"

0 commit comments

Comments
 (0)