Include hammer.js in the built external libraries.
MODIFY
external.config.js
external.config.js
@@ -28,6 +28,8 @@ module.exports = {
module: {
loaders: [{
test: require.resolve('d3'), loader: 'expose?d3'
+ }, {
+ test: require.resolve('hammerjs'), loader: 'expose?hammerjs'
}]
}
};

MODIFY
src/vendor.js
src/vendor.js
* @license BSD-3-Clause
*/
var globals = {
- d3: require('d3')
+ d3: require('d3'),
+ hammerjs: require('hammerjs')
};
module.exports = globals;

Include hammer.js in the built external libraries.