• Robert Knight's avatar
    Fix module load error on pages defining `require` · 3f9bc92d
    Robert Knight authored
    There are two expressions which reference a global `require` function in
    the Browserify prelude. Both of them need to be rewritten to use
    `hypothesisRequire` instead. Previously only the first use was
    rewritten, which worked as long as the page didn't define its own
    `require` function. On https://qa.hypothes.is/search for example, h's
    JavaScript bundles do.
    3f9bc92d
create-bundle.js 7.7 KB