Merge pull request #2985 from swagger-api/shockey-patch-2

Update webpack-dist.config.js
This commit is contained in:
shockey
2017-04-26 23:03:20 -07:00
committed by GitHub

View File

@@ -24,7 +24,7 @@ module.exports = require('./make-webpack-config.js')({
externals: function(context, request, cb) {
// webpack injects some stuff into the resulting file,
// these libs need to be pulled in to keep that working.
let exceptionsForWebpack = ["ieee754", "base64-js"]
var exceptionsForWebpack = ["ieee754", "base64-js"]
if(node_modules.indexOf(request) !== -1 || exceptionsForWebpack.indexOf(request) !== -1) {
console.log(request)
cb(null, 'commonjs ' + request)