Skip to content

Commit 6a35870

Browse files
authored
build(webpack): remove scoped process imports (#40)
Refs swagger-api/swagger-editor#4585
1 parent 5d351df commit 6a35870

File tree

3 files changed

+0
-40
lines changed

3 files changed

+0
-40
lines changed

package-lock.json

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

packages/react-scripts/config/webpack.config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,6 @@ module.exports = function (webpackEnv) {
460460
and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
461461
},
462462
},
463-
// Provide explicit import of `process` symbol.
464-
{
465-
test: /@apidevtools\/json-schema-ref-parser\/lib\/util\/url.js$/,
466-
loader: 'imports-loader',
467-
options: {
468-
type: 'commonjs',
469-
imports: ['single process/browser process'],
470-
},
471-
},
472463
{
473464
test: /\.(js|mjs|jsx|ts|tsx)$/,
474465
include: paths.appSrc,

packages/react-scripts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"html-webpack-plugin": "^5.5.0",
5454
"identity-obj-proxy": "^3.0.0",
5555
"inspectpack": "^4.7.1",
56-
"imports-loader": "^5.0.0",
5756
"jest": "^27.4.3",
5857
"jest-resolve": "^27.4.2",
5958
"jest-watch-typeahead": "^1.0.0",

0 commit comments

Comments
 (0)