From a00a6baef82572c761c39c76764fb97479cee41c Mon Sep 17 00:00:00 2001 From: Joost Farla Date: Sat, 10 Oct 2015 11:20:33 +0200 Subject: [PATCH] Let Browserify continue on missing optional dependencies (#201) --- lib/commands/deploy_lambda.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/commands/deploy_lambda.js b/lib/commands/deploy_lambda.js index d6c85ac00..6999c119d 100644 --- a/lib/commands/deploy_lambda.js +++ b/lib/commands/deploy_lambda.js @@ -614,6 +614,7 @@ Packager.prototype._browserifyBundle = Promise.method(function() { browserField: false, // Setup for node app (copy logic of --node in bin/args.js) builtins: false, commondir: false, + ignoreMissing: true, // Do not fail on missing optional dependencies detectGlobals: true, // Default for bare in cli is true, but we don't care if its slower insertGlobalVars: { // Handle process https://github.com/substack/node-browserify/issues/1277 //__filename: insertGlobals.vars.__filename,