Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Webpack 5 #1074

Open
8 tasks
chadlwilson opened this issue Feb 1, 2024 · 4 comments
Open
8 tasks

Upgrade to Webpack 5 #1074

chadlwilson opened this issue Feb 1, 2024 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@chadlwilson
Copy link
Member

chadlwilson commented Feb 1, 2024

Similar to gocd/gocd#10852

Summary

Currently we are using Webpack 4. Many plugins/loaders etc have changed and are no longer getting patched/updated, so we probably need to migrate to Webpack 5.

Keeping track of work/research here, for want of a better place.

Things to do

General research

Plugins/Loaders

Current version already supports webpack 5 / can be deferred

@chadlwilson chadlwilson added the help wanted Extra attention is needed label Feb 1, 2024
@sambitD007
Copy link

@chadlwilson script-ext-html-webpack-plugin is also deprecated with plugin no longer being maintained.
https://github.com/numical/script-ext-html-webpack-plugin

I am getting

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: undefined@undefined
npm error Found: [email protected]
npm error node_modules/webpack
npm error   dev webpack@"^5.91.0" from the root project
npm error   peer webpack@"^4.0.0 || ^5.0.0" from [email protected]
npm error   node_modules/html-webpack-plugin
npm error     dev html-webpack-plugin@"^4.5.2" from the root project
npm error     peer html-webpack-plugin@"^3.0.0 || ^4.0.0" from [email protected]
npm error     node_modules/script-ext-html-webpack-plugin
npm error       dev script-ext-html-webpack-plugin@"^2.1.5" from the root project

@chadlwilson
Copy link
Member Author

@sambitD007 yes, that also needs replacing/removing.

Can I ask what you are trying to achieve?

@sambitD007
Copy link

I am trying out the above task of migrating the code to webpack 5.

@chadlwilson
Copy link
Member Author

Ahh okay - cool. Yeah, I imagine it's not easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants