You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ta...@apache.org on 2020/01/13 15:26:50 UTC

[openwhisk-composer] 01/01: Add webpackIgnore annotation for redis dependency

This is an automated email from the ASF dual-hosted git repository.

tardieu pushed a commit to branch webpackIgnore-redis
in repository https://gitbox.apache.org/repos/asf/openwhisk-composer.git

commit e8f602a32027d23f8688e01d0acb951df1d83048
Author: Olivier Tardieu <ta...@users.noreply.github.com>
AuthorDate: Mon Jan 13 10:25:03 2020 -0500

    Add webpackIgnore annotation for redis dependency
---
 conductor.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conductor.js b/conductor.js
index f37d152..107c6a3 100644
--- a/conductor.js
+++ b/conductor.js
@@ -50,7 +50,7 @@ function main (composition) {
   function done (id) { return `composer/join/${id}` }
 
   function createRedisClient (p) {
-    const client = require('redis').createClient(p.s.redis.uri, p.s.redis.ca ? { tls: { ca: Buffer.from(p.s.redis.ca, 'base64').toString('binary') } } : {})
+    const client = require(/* webpackIgnore: true */ 'redis').createClient(p.s.redis.uri, p.s.redis.ca ? { tls: { ca: Buffer.from(p.s.redis.ca, 'base64').toString('binary') } } : {})
     const noop = () => { }
     let handler = noop
     client.on('error', error => handler(error))