From 4e35b47760e4193909fd98c42d235f9792ee9ea0 Mon Sep 17 00:00:00 2001 From: Gapodo Date: Tue, 21 Nov 2023 01:51:35 +0100 Subject: [PATCH] more Update --- babel.config.ts | 10 ++++------ package-lock.json | 5 +++++ package.json | 2 +- webpack.config.ts | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/babel.config.ts b/babel.config.ts index 952ab4b6..fd5da77f 100644 --- a/babel.config.ts +++ b/babel.config.ts @@ -4,14 +4,12 @@ export default api => { [ "@babel/preset-env", { - "corejs": {"version": 3}, + "corejs": {"version": '3.33', "proposals": false}, "useBuiltIns": "usage", "targets": { - "edge": "17", - "firefox": "60", - "chrome": "67", - "safari": "11.1", - "ie": "11" + "edge": "111", + "firefox": "100", + "chrome": "109" } } ] diff --git a/package-lock.json b/package-lock.json index 6e32608b..543338b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19162,6 +19162,11 @@ "object-assign": "^4.1.1", "react-is": "^16.13.1" } + }, + "resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" } } }, diff --git a/package.json b/package.json index b1c15ddc..71021666 100644 --- a/package.json +++ b/package.json @@ -127,4 +127,4 @@ "webpack-manifest-plugin": "^3.2.0", "webrtc-adapter": "^7.5.1" } -} \ No newline at end of file +} diff --git a/webpack.config.ts b/webpack.config.ts index e7d62180..833a985c 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -46,9 +46,9 @@ const generateLocalBuildInfo = async (target: string): Promise = { const gitRevision = fs.readFileSync(path.join(__dirname, ".git", "HEAD")).toString(); if(gitRevision.indexOf("/") === -1) { - info.gitVersion = (gitRevision || "00000000").substr(0, 8); + info.gitVersion = (gitRevision || "00000000").substring(0, 8); } else { - info.gitVersion = fs.readFileSync(path.join(__dirname, ".git", gitRevision.substr(5).trim())).toString().substr(0, 8); + info.gitVersion = fs.readFileSync(path.join(__dirname, ".git", gitRevision.substring(5).trim())).toString().substring(0, 8); } try {