(Refactor) : Updated few dependencies related to : Webpack, React, Style-loader #185
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This pull request aims to update several dependencies to their latest versions to ensure compatibility, security, and leverage new features and enhancements. The following dependencies have been updated:
^3.6.2
^5.0.1
^5.8.0
^5.2.0
^5.0.1
^3.1.0
^9.0.1
^5.3.10
^5.1.4
^5.0.3
^3.3.4
^13.0.0
The some major changes in this pull request (PR) is related to the
terser-webpack-plugin
,webpack-cli
, andwebpack-dev-server
. These were based on version 4, and there are some breaking changes in version 5. I addressed those changes. For this, I need to convert the following files:configs/webpack.config.main.prod.babel.js
→configs/webpack.config.main.prod.babel.cjs
configs/webpack.config.renderer.prod.babel.js
→configs/webpack.config.renderer.prod.babel.cjs
There were a few errors around the imports, and upon investigation, I discovered that we need to change the extension of the
.js
file to either.mjs(Module JavaScript)
or.cjs(Common JavaScript)
. I tried both, but using.mjs
still throws some errors, so I opted for.cjs
instead.Also, some methods were updated in the newer version. For example,
onBeforeSetupMiddleware()
is no longer supported, so I replaced it withsetupMiddlewares: ()
.Other than this, there are just some formatting changes.
Related Issue
Closes #171
Testing:
Tested updated dependencies locally to ensure functionality remains intact.
Used commands:
yarn test
- all tests passedyarn dev
- no UI fails detectedyarn build
- no build fails detectedyarn dev
- no new console errors detected for any dependenciesChecklist
Additional Context
Reviewer(s)
@lrasmus