diff --git a/package-lock.json b/package-lock.json index 7e20edfa..17ca90b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16288,25 +16288,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/imports-loader": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/imports-loader/-/imports-loader-5.0.0.tgz", - "integrity": "sha512-tXgL8xxZFjOjQLLiE7my00UUQfktg4G8fdpXcZphL0bJWbk9eCxKKFaCwmFRcwyRJQl95GXBL1DoE1rCS/tcPw==", - "dependencies": { - "source-map-js": "^1.0.2", - "strip-comments": "^2.0.1" - }, - "engines": { - "node": ">= 18.12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -32440,7 +32421,6 @@ "git-describe": "^4.1.1", "html-webpack-plugin": "^5.5.0", "identity-obj-proxy": "^3.0.0", - "imports-loader": "^5.0.0", "inspectpack": "^4.7.1", "jest": "^27.4.3", "jest-resolve": "^27.4.2", @@ -44498,15 +44478,6 @@ "resolve-cwd": "^3.0.0" } }, - "imports-loader": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/imports-loader/-/imports-loader-5.0.0.tgz", - "integrity": "sha512-tXgL8xxZFjOjQLLiE7my00UUQfktg4G8fdpXcZphL0bJWbk9eCxKKFaCwmFRcwyRJQl95GXBL1DoE1rCS/tcPw==", - "requires": { - "source-map-js": "^1.0.2", - "strip-comments": "^2.0.1" - } - }, "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -50832,7 +50803,6 @@ "git-describe": "^4.1.1", "html-webpack-plugin": "^5.5.0", "identity-obj-proxy": "^3.0.0", - "imports-loader": "^5.0.0", "inspectpack": "^4.7.1", "jest": "^27.4.3", "jest-resolve": "^27.4.2", diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 7e96ddac..9081e019 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -460,15 +460,6 @@ module.exports = function (webpackEnv) { and: [/\.(ts|tsx|js|jsx|md|mdx)$/], }, }, - // Provide explicit import of `process` symbol. - { - test: /@apidevtools\/json-schema-ref-parser\/lib\/util\/url.js$/, - loader: 'imports-loader', - options: { - type: 'commonjs', - imports: ['single process/browser process'], - }, - }, { test: /\.(js|mjs|jsx|ts|tsx)$/, include: paths.appSrc, diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 86916294..6a71573d 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -53,7 +53,6 @@ "html-webpack-plugin": "^5.5.0", "identity-obj-proxy": "^3.0.0", "inspectpack": "^4.7.1", - "imports-loader": "^5.0.0", "jest": "^27.4.3", "jest-resolve": "^27.4.2", "jest-watch-typeahead": "^1.0.0",