•  
      request #19287 Make internal libs "tree-shakeable"
    Infos
    #19287
    Thomas Gerbet (tgerbet)
    2021-03-01 17:16
    2021-02-09 18:39
    20864
    Details
    Make internal libs "tree-shakeable"
    Currently the internal libs we build in the Tuleap repo cannot be tree-shaken because they are only delivered as UMD. This means that they need to be bundled entirely when they are imported into the other apps resulting in bigger than needed apps (which is bad for performance) and can even be a source of issue (e.g. git #tuleap/stable/c59f4e68e7c6a9f22587996b9953075f90816c24).

    To be "tree-shakeable" we need to build our libraries as ES modules. Unfortunately, Webpack is not capable to do that at the moment [0] so we need to use another tool. It feels like an opportunity to test Vite [1].




    [0] https://github.com/webpack/webpack/issues/2933
    [1] https://vitejs.dev/
    Other
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-02-24
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2021-02-24 15:16
    Only card fields remains built by webpack, but this requires investigation and possibly writing a plugin. Let's close this request, we can open another one.

    • Status changed from Under implementation to Closed
    • Close date set to 2021-02-24