From c1fe1ac89831f8ed06f7e61fab86d81fdd88f355 Mon Sep 17 00:00:00 2001 From: Suraj Goel Date: Wed, 16 Oct 2024 23:41:06 +0530 Subject: [PATCH] Remove EOL file-loader dependency (#17346) --- web-console/package-lock.json | 76 ----------------------------------- web-console/package.json | 1 - web-console/webpack.config.js | 8 ++-- 3 files changed, 3 insertions(+), 82 deletions(-) diff --git a/web-console/package-lock.json b/web-console/package-lock.json index 14bb87791e8..123ed80949f 100644 --- a/web-console/package-lock.json +++ b/web-console/package-lock.json @@ -94,7 +94,6 @@ "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-unicorn": "^38.0.0", "eslint-plugin-unused-imports": "^2.0.0", - "file-loader": "^6.2.0", "fs-extra": "^8.1.0", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", @@ -7287,52 +7286,6 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "dev": true, - "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/file-loader/node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/file-loader/node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, "node_modules/file-saver": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz", @@ -24021,35 +23974,6 @@ "flat-cache": "^3.0.4" } }, - "file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "dev": true, - "requires": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true - }, - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - } - } - }, "file-saver": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz", diff --git a/web-console/package.json b/web-console/package.json index 26103552e3a..abb199fac64 100644 --- a/web-console/package.json +++ b/web-console/package.json @@ -148,7 +148,6 @@ "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-unicorn": "^38.0.0", "eslint-plugin-unused-imports": "^2.0.0", - "file-loader": "^6.2.0", "fs-extra": "^8.1.0", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", diff --git a/web-console/webpack.config.js b/web-console/webpack.config.js index 1735cd3dfd8..9e74bcf5633 100644 --- a/web-console/webpack.config.js +++ b/web-console/webpack.config.js @@ -160,11 +160,9 @@ module.exports = env => { }, { test: /\.(woff|woff2|ttf|eot)$/, - use: { - loader: 'file-loader', - options: { - name: '[name].[ext]', - }, + type: 'asset/resource', + generator: { + filename: 'fonts/[name].[ext]', }, }, ],