•  
      request #20149 Use ESBuild to transpile and minimize the JS/TS and CSS code
    Infos
    #20149
    Thomas Gerbet (tgerbet)
    2021-04-01 17:18
    2021-03-29 16:08
    21736
    Details
    Use ESBuild to transpile and minimize the JS/TS and CSS code

    The build process currently relies on terser-webpack-plugin/Terser, css-minimizer-webpack-plugin/cssnano, babel-loader/Babel to transpile the code and minimize it.

    We can replace all of that by using esbuild-loader/ESBuild and have significant speed-up of the build (see those minification benchmarks for example). However our bundles will get a little bigger but in our situation where the first load does not matter that much so it's probably an acceptable trade-off. Also, it reduces greatly the number of different tools we use so it might be a bit easier to troubleshot issues...

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-04-01
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-04-01 17:18

    All done, closing.


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-04-01