From 92aa874c6e83351d63df6b15db7bd26e84e61c11 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Thu, 1 Mar 2018 18:37:52 -0500 Subject: [PATCH] Improve Javascript error logging when Hammer.js lookup fails --- webpack.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f8152574ba..9807e5291e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -47,7 +47,10 @@ module.exports = { root: 'Hammer', commonjs: 'hammerjs', commonjs2: 'hammerjs', - amd: 'hammerjs' + amd: 'hammerjs', + // Since GeoJS's libraryTarget is "umd", defining this (undocumented) external library type + // will allow Webpack to create a better error message if a "hammerjs" import fails + umd: 'hammerjs' } }, plugins: [