aframe icon indicating copy to clipboard operation
aframe copied to clipboard

Update webpack to latest supported version

Open vincentfretin opened this issue 1 year ago • 2 comments

Description:

Update build tools dependencies.

Changes proposed:

  • Update webpack and associated loaders
  • Update webpack-dev-server, this requires now at least node 18.12.0 that everyone should have, older versions of node aren't supported anymore. Current LTS is node 20.x
  • Remove webpack-merge dependency, webpack now supports extending another configuration with "extends"

vincentfretin avatar Feb 28 '24 17:02 vincentfretin

Are any of these updates needed? In general I avoid updating dependencies unless there's a reason to do so. If things work no reason to get exposed to API changes, regressions, new bugs

dmarcos avatar Feb 29 '24 15:02 dmarcos

Not currently needed per se, just maintenance, so we don't need to check the changelog of 30 versions of those dependencies in 5 years when we really need to upgrade because of a blocker like we had with budo and self-signed certificate not working on ubuntu 22.04.

Please be aware that we don't push package-lock.json in the repo, so we effectively auto upgrade all those dependencies when you freshly git clone the repo and run npm install. Here are the only real upgrades:

  • "webpack-cli" from "4.x.x" to 5.x.x"
  • "webpack-dev-server" from "4.x.x" to "5.x.x"
  • "babel-loader" from "8.x.x" to "9.x.x"

that removes support for node 16.x. That's the only api changes as far as I'm aware after reading the changelogs. The dist didn't change after those upgrades. And this also remove webpack-merge dependency, that's always nice to remove dependencies.

Feel free to leave it open until we really need it. I'll just update it the next time I read the changelogs in a year :D

vincentfretin avatar Feb 29 '24 16:02 vincentfretin

@dmarcos now that the bot is using node 22.7.0 I don't see any reason to not merge this.

vincentfretin avatar Sep 17 '24 12:09 vincentfretin

@vincentfretin is this a one time thing or we will have to continuously update webpack and stuff. Would prefer to avoid get on the train of updating packages just for the shake of it. Can of course update if there's a reason to do so

dmarcos avatar Sep 17 '24 22:09 dmarcos

That's a one time thing to remove a dependency, otherwise I wouldn't have bothered to do this PR.

vincentfretin avatar Sep 18 '24 08:09 vincentfretin

Thanks!

dmarcos avatar Sep 18 '24 16:09 dmarcos