Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 859 Bytes

MD5_UPGRADING.md

File metadata and controls

29 lines (21 loc) · 859 Bytes

Upgrading MD5

Introduction

We are using the md5 module to compute hashes within the source map worker. From there we don't have easy access to privileged APIs...

Instructions

    $ wget https://github.com/pvorb/node-md5/archive/refs/tags/v2.3.0.tar.gz
    $ tar zxvf v2.3.0.tar.gz
    $ cd node-md5-2.3.0/

Here edit webpack.config.js to set libraryTarget: "umd", otherwise it is packed into a script bundle instead of being kept as a commonjs.

    $ yarn webpack
    $ cp dist/md5.min.js ../md5.js # this will copy it to devtools/client/shared/vendor/md5.js
    $ cd ..
    $ rm -rf v2.3.0.tar.gz node-md5-2.3.0