Skip to content

Commit 6c3b697

Browse files
committed
frontend: Migrate from deprecated babel/polyfill to core-js
1 parent e29b4dc commit 6c3b697

File tree

4 files changed

+19
-29
lines changed

4 files changed

+19
-29
lines changed

frontend/babel.config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
[
44
"@babel/preset-env",
55
{
6-
"targets": {
7-
"browsers": ["last 2 Chrome versions", "Firefox ESR"]
8-
}
6+
"useBuiltIns": "entry",
7+
"corejs": 3,
8+
"targets": "defaults"
99
}
1010
],
1111
"@babel/preset-react",

frontend/package-lock.json

Lines changed: 14 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "",
1818
"license": "Apache-2.0",
1919
"dependencies": {
20-
"@babel/polyfill": "^7.12.1",
2120
"axios": "^1.13.5",
21+
"core-js": "^3.40.0",
2222
"bootstrap-material-design": "^4.1.3",
2323
"firebase": "^11.2.0",
2424
"immutability-helper": "^2.9.1",

frontend/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
// Import this first to support old browsers.
16-
import '@babel/polyfill';
16+
import 'core-js/stable';
1717

1818
import React from 'react';
1919
import ReactDOM from 'react-dom';

0 commit comments

Comments
 (0)