• Robert Knight's avatar
    Fix Hammer.JS error on web pages that use Require.JS · 45d74682
    Robert Knight authored
    Fix an error related to Hammer.JS on client startup on pages that define
    a global variable called `define`, which is part of Require.JS. Hammer's UMD
    bundle does not set `module.exports` in this case, so modules that import it
    get an empty object back.
    
    Fix the issue by making sure that any reference to `define` inside
    bundles evaluates to undefined (assuming there is no local variable
    within the module with that name).
    
    This fixes an issue where clicking "Annotate" failed to open the sidebar
    on BBC News articles (eg. https://www.bbc.co.uk/news/world-52144390).
    45d74682
Name
Last commit
Last update
..
decaf Loading commit data...
gulp Loading commit data...
.eslintrc Loading commit data...
create-github-release.js Loading commit data...
deploy-to-s3.js Loading commit data...
generate-change-list.js Loading commit data...
release-it Loading commit data...
update-icon-font.py Loading commit data...
wait-for-npm-release.sh Loading commit data...