From bcd36ff6674e6c3979bc80e5ade47159862f33b3 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Wed, 26 Apr 2017 18:11:27 -0700 Subject: [PATCH] Fix #2937 --- webpack-dist.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack-dist.config.js b/webpack-dist.config.js index 6ee19255..48410ad9 100644 --- a/webpack-dist.config.js +++ b/webpack-dist.config.js @@ -22,7 +22,11 @@ module.exports = require('./make-webpack-config.js')({ }, externals: function(context, request, cb) { - if(node_modules.indexOf(request) !== -1) { + // webpack injects some stuff into the resulting file, + // these libs need to be pulled in to keep that working. + let exceptionsForWebpack = ["ieee754", "base64-js"] + if(node_modules.indexOf(request) !== -1 || exceptionsForWebpack.indexOf(request) !== -1) { + console.log(request) cb(null, 'commonjs ' + request) return; }