When redering views on a server (like in a universal / isomorphic application) we do not have a window or document instance. This will result in an error in hammer.js.
Ofcourse hammer.js has no use in a server environment, but hammer.js should not throw an error when it's only being included (via require, or import).
This here, line 2643 in the hammer.js file:
})(window, document, 'Hammer');
is causing trouble, window and document are not defined in a server environment.
When redering views on a server (like in a universal / isomorphic application) we do not have a window or document instance. This will result in an error in hammer.js.
Ofcourse hammer.js has no use in a server environment, but hammer.js should not throw an error when it's only being included (via require, or import).
This here, line 2643 in the
hammer.js
file:is causing trouble,
window
anddocument
are not defined in a server environment.