From 20d665bac7e2044b3fb80d533d7d9817a82699bb Mon Sep 17 00:00:00 2001 From: Clinton Christian Date: Wed, 11 Sep 2024 16:46:28 -0400 Subject: [PATCH] =?UTF-8?q?Re-add=20autoprefixer=E2=80=94now=20as=20a=20vi?= =?UTF-8?q?te=20build=20plugin.=20Remove=20unncessary=20polyfills.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +----- postcss.config.js | 7 +++++++ src/lib/polyfills.ts | 24 ------------------------ 3 files changed, 8 insertions(+), 29 deletions(-) create mode 100644 postcss.config.js delete mode 100644 src/lib/polyfills.ts diff --git a/package.json b/package.json index 19adc1c87e..acc0973abf 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,6 @@ "body-parser": "^1.20.2", "circular-dependency-plugin": "^5.2.2", "cspell": "^8.3.2", - "css-what": "^6.1.0", - "cssnano": "^6.0.1", "deepl-node": "^1.10.1", "esbuild-plugin-react-virtualized": "^1.0.4", "eslint": "^9.7.0", @@ -57,7 +55,6 @@ "eslint-plugin-unicorn": "^49.0.0", "express": "^4.19.2", "express-http-proxy": "^2.0.0", - "fork-ts-checker-webpack-plugin": "^9.0.0", "globals": "^15.8.0", "goban": "=8.3.50", "html-minifier": "4.0.0", @@ -140,8 +137,7 @@ "sanitize-html": "^2.12.1", "sweetalert2": "^11.4.17", "ts-md5": "^1.3.1", - "valid-url": "^1.0.9", - "whatwg-fetch": "^3.0.0" + "valid-url": "^1.0.9" }, "lint-staged": { "src/**/*.{ts,tsx}": [ diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000000..7abfa2e536 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,7 @@ +import autoprefixer from "autoprefixer"; + +export default { + plugins: [ + autoprefixer + ] +} diff --git a/src/lib/polyfills.ts b/src/lib/polyfills.ts deleted file mode 100644 index 61ba94b7e3..0000000000 --- a/src/lib/polyfills.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) Online-Go.com - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import "whatwg-fetch"; /* polyfills window.fetch */ - -export function apply_polyfills() { - if (typeof window === "undefined") { - return; - } -}