•  
      request #17195 Upgrade to Webpack 5
    Infos
    #17195
    Thomas Gerbet (tgerbet)
    2021-03-29 15:44
    2020-10-12 14:22
    18664
    Details
    Upgrade to Webpack 5
    Webpack 5 has been released 🎉 the list of changes and new features is massive. The complete release note can be found here: https://webpack.js.org/blog/2020-10-10-webpack-5-release/

    On a short time the upgrade should improve a bit the build performance (at least in dev scenarios where some modules are built over and over) and the size of our bundles.
    Some new features such as the module federation looks quite nice for our micro-frontends approach so the upgrade is also likely to yield advantages in the long-term perspective.

    The upgrade plan is something like this:
    1. Upgrade every plugins/loaders, replace or remove some of them
    2. Deal with the changes of configuration
    3. Deal with potential bugs (report/fix, cry a little and go back to step 1)
    4. Upgrade to Webpack 5
    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-03-29
    Attachments
    Empty
    References
    Referencing request #17195

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-03-29 15:44

    I propose to close this. It's been 10 days and it looks like it's mostly stable.

    There is still the deprecation warning for webpack-merge-and-include-globally plugin but we can deal with that separately.


    • Status changed from Under implementation to Closed
    • Close date set to 2021-03-29
    User avatar
    Thomas Gerbet (tgerbet)2021-03-04 16:19
    With the work done in request #19709 and the general work that has been put into the ecosystem to support Webpack 5, the upgrade should be easier now.

    I'm going to try again and that will start by upgrading all the plugins, loaders and tools again.
    User avatar
    Thomas Gerbet (tgerbet)2020-10-29 17:55
    For information this on hold for now, there is an almost working contribution here: gerrit #20545. For now I'm waiting for a release of webpack-assets-manifest compatible with Webpack 5 (the work is ongoing).